Skip to content

[19.0][MIG]: product_secondary_unit#2222

Open
JochenDeBie wants to merge 58 commits intoOCA:19.0from
DynAppsNV:19.0-mig-product_secondary_unit
Open

[19.0][MIG]: product_secondary_unit#2222
JochenDeBie wants to merge 58 commits intoOCA:19.0from
DynAppsNV:19.0-mig-product_secondary_unit

Conversation

@JochenDeBie
Copy link

@JochenDeBie JochenDeBie commented Feb 25, 2026

Before merging it might be worth to check what is happening with #2211

sergio-teruel and others added 30 commits February 25, 2026 11:24
Currently translated at 100.0% (16 of 16 strings)

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

Translation: product-attribute-13.0/product-attribute-13.0-product_secondary_unit
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-13-0/product-attribute-13-0-product_secondary_unit/fr/
…en secondary uom changes

[FIX] product_secondary_unit: Avoid cache missed
Currently translated at 100.0% (24 of 24 strings)

Translation: product-attribute-16.0/product-attribute-16.0-product_secondary_unit
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_secondary_unit/es/
alexey-pelykh and others added 24 commits February 25, 2026 11:24
Currently translated at 100.0% (23 of 23 strings)

Translation: product-attribute-18.0/product-attribute-18.0-product_secondary_unit
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-18-0/product-attribute-18-0-product_secondary_unit/hr/
Currently translated at 95.6% (22 of 23 strings)

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

Translation: product-attribute-18.0/product-attribute-18.0-product_secondary_unit
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-18-0/product-attribute-18-0-product_secondary_unit/ja/
Replace _get_factor_line() with uom._compute_quantity() to fix incorrect
conversion when line UoM differs from product's base UoM. The previous method
failed for certain UoM combinations (e.g., line in L, product in mL).

Co-authored-by: Yoshi Tashiro <[email protected]>
With the changes introduced in odoo/odoo@de056cc#diff-b37c7fd5520c97a29ddc59495779e7be61a66e15e85603928e27b3affb9dc31f, an error was occurring because the change validation on the model was being performed before tearDownClass was executed. Therefore, it has been modified so that the mock changes are applied in each test and cleaned up after each test. This way, the error will no longer appear and the test will run normally.
@JochenDeBie JochenDeBie changed the title [19.0][MIG]: product secondary unit [19.0][MIG]: product_secondary_unit Feb 25, 2026
@dreispt
Copy link
Member

dreispt commented Feb 26, 2026

/ocabot migration product_secondary_unit

@OCA-git-bot OCA-git-bot added this to the 19.0 milestone Feb 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.