Skip to content
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

Closed
wants to merge 25 commits into from

Conversation

remihb
Copy link
Contributor

@remihb remihb commented Jul 3, 2024

Duplicate of #1520

The PR #1520 has issues with remaining attrs in view causing a Raise at module installation

odoo.tools.convert.ParseError: while parsing /home/odoo/odoo/parts/product-attribute/product_net_weight/views/view_product_template.xml:9
Depuis 17.0, les attributs "attrs" et "states" ne sont plus utilisés.
Vue : product.template form dans product_net_weight/views/view_product_template.xml

legalsylvain and others added 25 commits July 3, 2024 02:36
- 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/
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/
Copy link
Member

@ioans73 ioans73 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Functional review

@rousseldenis
Copy link
Contributor

@peeranutjobgo Do you mind if we switch to this ?

/ocabot migration product_net_weight

@OCA-git-bot OCA-git-bot mentioned this pull request Jul 19, 2024
58 tasks
Copy link
Contributor

@rousseldenis rousseldenis left a 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>
Copy link

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

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<label for="net_weight" />
<div class="o_row">
<field name="net_weight" />
<span><field name="weight_uom_name" /></span>
Copy link

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)

@MarcoCalcagni
Copy link

@rousseldenis @pedrobaeza
codecov/patch In progress pls note that is Started 1m 24d 2h 5m 37s ago.

pls merge

@pedrobaeza
Copy link
Member

What about the last 2 pending comments?

@rvalyi
Copy link
Member

rvalyi commented Oct 5, 2024

@remihb I extracted the extra layout form fix from #1735
and sent a PR to you here osiell#1

If you merge it quick, I guess we can merge your PR here.
If not, then I made a new PR in the OCA with the adicional fix: #1740

@rvalyi
Copy link
Member

rvalyi commented Oct 9, 2024

supersedeed by #1740

@rvalyi rvalyi closed this Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.