Skip to content

Conversation

@eugenios73
Copy link

@eugenios73 eugenios73 commented Oct 24, 2025

product_logistics_uom migration to 19.0

Depends on #2089

hparfr and others added 30 commits October 23, 2025 16:26
Currently translated at 100.0% (17 of 17 strings)

Translation: product-attribute-12.0/product-attribute-12.0-product_logistics_uom
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-12-0/product-attribute-12-0-product_logistics_uom/es/
Currently translated at 76.9% (10 of 13 strings)

Translation: product-attribute-16.0/product-attribute-16.0-product_logistics_uom
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_logistics_uom/de/
Currently translated at 100.0% (13 of 13 strings)

Translation: product-attribute-16.0/product-attribute-16.0-product_logistics_uom
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_logistics_uom/it/
Currently translated at 100.0% (13 of 13 strings)

Translation: product-attribute-16.0/product-attribute-16.0-product_logistics_uom
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_logistics_uom/it/
Before this change, the volume and weight values on product were no more stored into the expected kg and m3 uoms. To know the effective value you had to convert the value using the specified uom on the record. As side effect the arithmetic operations done on these fields in others addon as for exemple in 'delivery' were not correct.

This change restore the default behavior by always storing the values into the default uoms whatever the uom specified on the product. 2 new fields are added on the product to allows the user to see and managed these values in the specified uom. When values are updated through an update of these new fields, the new values are converted into the default uoms and the result stored into the original fields.

fixes OCA#1312
Currently translated at 100.0% (28 of 28 strings)

Translation: product-attribute-16.0/product-attribute-16.0-product_logistics_uom
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_logistics_uom/es/
Currently translated at 100.0% (28 of 28 strings)

Translation: product-attribute-16.0/product-attribute-16.0-product_logistics_uom
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_logistics_uom/it/
Currently translated at 100.0% (28 of 28 strings)

Translation: product-attribute-16.0/product-attribute-16.0-product_logistics_uom
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_logistics_uom/it/
Currently translated at 100.0% (29 of 29 strings)

Translation: product-attribute-17.0/product-attribute-17.0-product_logistics_uom
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-17-0/product-attribute-17-0-product_logistics_uom/it/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: product-attribute-18.0/product-attribute-18.0-product_logistics_uom
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-18-0/product-attribute-18-0-product_logistics_uom/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: product-attribute-18.0/product-attribute-18.0-product_logistics_uom
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-18-0/product-attribute-18-0-product_logistics_uom/
Currently translated at 100.0% (31 of 31 strings)

Translation: product-attribute-18.0/product-attribute-18.0-product_logistics_uom
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-18-0/product-attribute-18-0-product_logistics_uom/it/
@eugenios73 eugenios73 force-pushed the 19.0-mig-product_logistics_uom branch from 89d9d2a to 7607105 Compare October 24, 2025 07:31
@eugenios73 eugenios73 changed the title 19.0][MIG] product_logistics_uom: Migration from 18.0 to 19.0 [19.0][MIG] product_logistics_uom: Migration from 18.0 to 19.0 Oct 24, 2025
@eugenios73 eugenios73 force-pushed the 19.0-mig-product_logistics_uom branch 3 times, most recently from 9a0d77c to 4d99e8e Compare November 6, 2025 08:50
@eugenios73 eugenios73 force-pushed the 19.0-mig-product_logistics_uom branch from 4d99e8e to 172a04b Compare November 6, 2025 10:25
Copy link

@Reyes4711-S73 Reyes4711-S73 left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.