-
-
Notifications
You must be signed in to change notification settings - Fork 698
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
[17.0][MIG] product_net_weight : Migration to 17.0 #1677
Conversation
- Add new net_weight field on product models; - Rename weight field with 'Gross Weight' string;
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: product-attribute-15.0/product-attribute-15.0-product_net_weight Translate-URL: https://translation.odoo-community.org/projects/product-attribute-15-0/product-attribute-15-0-product_net_weight/
Currently translated at 88.8% (8 of 9 strings) Translation: product-attribute-15.0/product-attribute-15.0-product_net_weight Translate-URL: https://translation.odoo-community.org/projects/product-attribute-15-0/product-attribute-15-0-product_net_weight/es/
…with multiple variants
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: product-attribute-16.0/product-attribute-16.0-product_net_weight Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_net_weight/
Currently translated at 100.0% (7 of 7 strings) Translation: product-attribute-16.0/product-attribute-16.0-product_net_weight Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_net_weight/es/
Currently translated at 100.0% (7 of 7 strings) Translation: product-attribute-16.0/product-attribute-16.0-product_net_weight Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_net_weight/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.
Functional review
@peeranutjobgo Do you mind if we switch to this ? /ocabot migration product_net_weight |
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.
Code review
invisible="product_variant_count > 1 and not is_product_variant" | ||
> | ||
<field name="net_weight" class="oe_inline" /> | ||
<span><field name="weight_uom_name" /></span> |
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.
Would recommend to remove the elements to align units with the standard product form
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.
@drewes a new PR where the issue is fixed https://github.com/OCA/product-attribute/pull/1735/files
<label for="net_weight" /> | ||
<div class="o_row"> | ||
<field name="net_weight" /> | ||
<span><field name="weight_uom_name" /></span> |
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.
Would remove to align unit with standard product form (and in additions below)
@rousseldenis @pedrobaeza pls merge |
What about the last 2 pending comments? |
supersedeed by #1740 |
Duplicate of #1520
The PR #1520 has issues with remaining
attrs
in view causing a Raise at module installation