[16.0][FIX] pos_order_reorder: Conditional Display of "Repeat Order" Button Based on POS Setting#1418
Merged
Conversation
Author
|
Development Testing: |
danielduqma
approved these changes
Jul 23, 2025
danielduqma
left a comment
Contributor
There was a problem hiding this comment.
This was fixed in migrations to newer versions, such as 17.0 in #1304, but not ported to 16.0. Thanks for solving it!
Conditional Display of "Repeat Order" Button Based on POS Setting
eb9edde to
ce0ed68
Compare
Contributor
|
Thanks. /ocabot merge patch |
Contributor
|
Hey, thanks for contributing! Proceeding to merge this for you. |
Contributor
|
Congratulations, your PR was merged at 8300964. Thanks a lot for contributing to OCA. ❤️ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description:
The "Allow Reorder" setting in the POS configuration was not functioning correctly. Regardless of whether the option was enabled or disabled, the "Repeat Order" button remained visible in the interface, potentially causing confusion and unintended duplicate orders.
Cases Covered with This Improvement:
Prevents the "Re-orderr" button from being displayed when the option is disabled in the POS settings.
Ensures the feature behaves according to the user-defined configuration.
Reduces the risk of incorrect order repetition in the sales environment.
Implemented Solution:
A condition has been added to the code to control the visibility of the "Re-order" button based on the current value of the "Allow Reorder" setting. This ensures that the button is only shown when the option is enabled, aligning the functionality with the configured behavior in the POS.
FL-571-6323