-
Notifications
You must be signed in to change notification settings - Fork 0
[18.0][IMP] pos_order_remove_line: Add config show button remove order line #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 18.0
Are you sure you want to change the base?
Conversation
…s when deleting an orderline from remove-line-button.
- Function logic is modified in order to use the numpad backspace trigger. - Stops event propagation and prevents default actions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Add/update the translation: *.pot and fr.po
- Incorrect behavior:
Screencast.from.20-11-2025.16.44.58.webm
| /> | ||
| </div> | ||
| <div> | ||
| <field name="pos_line_remove_warning" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
show it only when pos_line_remove_btn is ticked
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to click 2 times to remove item, it focus to paren element, I will check it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it's not a good idea. Always show the btn as it's.
Try to solve the issue. Spend more time, let me know if you cannot find the solution then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Screencast.from.2025-11-25.11-33-41.webm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolve! please help me to review this
b977fc6 to
5bda1ce
Compare
|
Resolved |
| /> | ||
| </div> | ||
| <div> | ||
| <field name="pos_line_remove_warning" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it's not a good idea. Always show the btn as it's.
Try to solve the issue. Spend more time, let me know if you cannot find the solution then.
5bda1ce to
7722cad
Compare
| }, | ||
| _executeRemove() { | ||
| this.numberBuffer.sendKey("Backspace"); | ||
| this.numberBuffer.sendKey("Backspace"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a little funny when there are 2 lines look-alike.
Please try this one instead:
const order = this.pos.get_order();
const selectedLine = order.get_selected_orderline();
order.removeOrderline(selectedLine);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If change it like that, it will cause a bug. For example, if line 3 is currently selected and you delete line 1, line 3 ends up being deleted instead.
Screencast.from.2026-01-22.17-36-37.webm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, if so, please comment to explain why you have 2 lines of this.numberBuffer.sendKey("Backspace");.
This will help the maintainer and later migration.
7722cad to
0262952
Compare
0262952 to
17846c6
Compare

ISSUE