-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[16.0][MIG] sale_order_line_description #3523
base: 16.0
Are you sure you want to change the base?
Conversation
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: sale-workflow-11.0/sale-workflow-11.0-sale_order_line_description Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-11-0/sale-workflow-11-0-sale_order_line_description/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: sale-workflow-12.0/sale-workflow-12.0-sale_order_line_description Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-12-0/sale-workflow-12-0-sale_order_line_description/
Currently translated at 100.0% (7 of 7 strings) Translation: sale-workflow-12.0/sale-workflow-12.0-sale_order_line_description Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-12-0/sale-workflow-12-0-sale_order_line_description/zh_CN/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: sale-workflow-14.0/sale-workflow-14.0-sale_order_line_description Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-14-0/sale-workflow-14-0-sale_order_line_description/
Currently translated at 100.0% (7 of 7 strings) Translation: sale-workflow-14.0/sale-workflow-14.0-sale_order_line_description Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-14-0/sale-workflow-14-0-sale_order_line_description/de/
Currently translated at 85.7% (6 of 7 strings) Translation: sale-workflow-14.0/sale-workflow-14.0-sale_order_line_description Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-14-0/sale-workflow-14-0-sale_order_line_description/fr/
Currently translated at 60.0% (6 of 10 strings) Translation: sale-workflow-14.0/sale-workflow-14.0-sale_order_line_description Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-14-0/sale-workflow-14-0-sale_order_line_description/fr_FR/
Currently translated at 14.2% (1 of 7 strings) Translation: sale-workflow-15.0/sale-workflow-15.0-sale_order_line_description Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-15-0/sale-workflow-15-0-sale_order_line_description/it/
Currently translated at 100.0% (7 of 7 strings) Translation: sale-workflow-15.0/sale-workflow-15.0-sale_order_line_description Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-15-0/sale-workflow-15-0-sale_order_line_description/es/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: sale-workflow-15.0/sale-workflow-15.0-sale_order_line_description Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-15-0/sale-workflow-15-0-sale_order_line_description/
/ocabot migration sale_order_line_description |
@api.onchange("product_id") | ||
def product_id_change(self): | ||
res = super(SaleOrderLine, self).product_id_change() | ||
@api.depends("product_id") |
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.
You can remove the depends as already defined in sale module.
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.
done, thanks!
res = super(SaleOrderLine, self).product_id_change() | ||
@api.depends("product_id") | ||
def _compute_name(self): | ||
res = super()._compute_name() | ||
if not self.product_id: # pragma: no cover |
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.
You should change the function implementation to support multi recordset.
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.
done, thanks!
814f80d
to
e8abad9
Compare
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.
Initially, everything seems to be working correctly. However, as mentioned above, if you add the product using the 'Add Multiple Products' function, it does not work as expected.
@Jaimermaccione thanks a lot for your review! Concerning the following:
I suppose you have the the same behavior in previous versions (i.e I prefer not to add |
@rousseldenis @Jaimermaccione could you please update your review? |
Superseeds #3070