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
Copy Markdown

@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
Co-authored-by: Hpar <raphael.reverdy@akretion.com>
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/
pilarvargas-tecnativa and others added 16 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 <tashiro@quartile.co>
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
Copy Markdown
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
@Vicent-S73
Copy link
Copy Markdown

LGTM

Copy link
Copy Markdown
Contributor

@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

@OCA-git-bot
Copy link
Copy Markdown
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

Copy link
Copy Markdown
Contributor

@BhaveshHeliconia BhaveshHeliconia 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 LGTM!

@Reyes4711-S73
Copy link
Copy Markdown
Contributor

@OCA/product-maintainers Please, can you review/merge this PR?

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.