Skip to content

Syncing from upstream OCA/product-attribute (19.0) - #1606

Merged
bt-admin merged 34 commits into
brain-tec:19.0from
OCA:19.0
Jun 18, 2026
Merged

Syncing from upstream OCA/product-attribute (19.0)#1606
bt-admin merged 34 commits into
brain-tec:19.0from
OCA:19.0

Conversation

@bt-admin

Copy link
Copy Markdown

bt_gitbot

hparfr and others added 30 commits May 14, 2026 11:45
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 #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/
@bt-admin bt-admin added the 19.0 label Jun 18, 2026
@bt-admin
bt-admin merged commit bce801b into brain-tec:19.0 Jun 18, 2026
4 checks passed
@codecov

codecov Bot commented Jun 18, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 99.09910% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 97.29%. Comparing base (ac0214b) to head (fbd0bca).
⚠️ Report is 61 commits behind head on 19.0.

Files with missing lines Patch % Lines
product_logistics_uom/models/product_template.py 96.55% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             19.0    #1606      +/-   ##
==========================================
+ Coverage   97.08%   97.29%   +0.20%     
==========================================
  Files         131      139       +8     
  Lines        1956     2178     +222     
  Branches      147      164      +17     
==========================================
+ Hits         1899     2119     +220     
- Misses         30       31       +1     
- Partials       27       28       +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.