-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[18.0] [MIG] sale_auto_remove_zero_quantity_lines: Migration to 18.0 #3700
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?
[18.0] [MIG] sale_auto_remove_zero_quantity_lines: Migration to 18.0 #3700
Conversation
…have a product_id
… hook to make customization easier
Currently translated at 100.0% (7 of 7 strings) Translation: sale-workflow-16.0/sale-workflow-16.0-sale_auto_remove_zero_quantity_lines Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-16-0/sale-workflow-16-0-sale_auto_remove_zero_quantity_lines/de/
Currently translated at 100.0% (7 of 7 strings) Translation: sale-workflow-16.0/sale-workflow-16.0-sale_auto_remove_zero_quantity_lines Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-16-0/sale-workflow-16-0-sale_auto_remove_zero_quantity_lines/it/
|
/ocabot migration sale_auto_remove_zero_quantity_lines |
| "removed upon confirmation." | ||
| ) | ||
| order.message_post(body=body) | ||
| zero_or_empty_lines.unlink() |
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.
@bizzappdev Could you improve this in order to gather lines in loop and unlink at the end ? Thanks
29045a0 to
cfb36c4
Compare
cfb36c4 to
78b9a17
Compare
| or (line.display_type == "line_note" and not line.name.strip()) | ||
| ) | ||
| if zero_or_empty_lines: | ||
| body = _( |
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.
| body = _( | |
| body = self.env._( |
78b9a17 to
1f4d3a8
Compare
No description provided.