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

[MIG][18.0] packaging uom [WIP] #1841

Open
wants to merge 52 commits into
base: 18.0
Choose a base branch
from

Conversation

gaelTorrecillas
Copy link

@gaelTorrecillas gaelTorrecillas commented Jan 13, 2025

Hello,

In this migration :

  • fix function reverse qty
  • fix test
  • remove test with qty=0 (sql contraints qty>0 in base)

@gaelTorrecillas gaelTorrecillas force-pushed the 18.0-mig-packaging_uom branch 2 times, most recently from 54c0699 to decb142 Compare January 13, 2025 15:40
@gaelTorrecillas gaelTorrecillas changed the title [MIG] packaging uom 18.0 [MIG][18.0] packaging uom Jan 15, 2025
@gaelTorrecillas gaelTorrecillas changed the title [MIG][18.0] packaging uom [MIG][18.0][WIP] packaging uom Jan 15, 2025
Laetitia Gangloff and others added 26 commits January 16, 2025 14:35
This change is required to make the code working with existing addons without breaking tets. By declaring an invers on qty, we are able to assign/create the required uom to the package based on the expected qty
When a sale order is confirmed and product packaging is filled in
sale order line(s), the information is propagated through
procurement orders and stock moves.
This is conditioned by a parameter on procurement rule.
Updated by Update PO files to match POT (msgmerge) hook in Weblate.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

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

Translation: product-attribute-13.0/product-attribute-13.0-packaging_uom
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-13-0/product-attribute-13-0-packaging_uom/
OCA-git-bot and others added 25 commits January 16, 2025 14:35
Currently translated at 100.0% (7 of 7 strings)

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

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

Translation: product-attribute-13.0/product-attribute-13.0-packaging_uom
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-13-0/product-attribute-13-0-packaging_uom/
Removing the readonly flag on the qty field avoids to trigger the
inverse method and loose the value of qty when it's passed to create.
Currently translated at 100.0% (7 of 7 strings)

Translation: product-attribute-13.0/product-attribute-13.0-packaging_uom
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-13-0/product-attribute-13-0-packaging_uom/es/
Currently translated at 100.0% (7 of 7 strings)

Translation: product-attribute-13.0/product-attribute-13.0-packaging_uom
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-13-0/product-attribute-13-0-packaging_uom/ca/
Currently translated at 42.8% (3 of 7 strings)

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

Translation: product-attribute-14.0/product-attribute-14.0-packaging_uom
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-14-0/product-attribute-14-0-packaging_uom/
Currently translated at 100.0% (10 of 10 strings)

Translation: product-attribute-14.0/product-attribute-14.0-packaging_uom
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-14-0/product-attribute-14-0-packaging_uom/it/
Currently translated at 100.0% (10 of 10 strings)

Translation: product-attribute-14.0/product-attribute-14.0-packaging_uom
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-14-0/product-attribute-14-0-packaging_uom/de/
Currently translated at 100.0% (10 of 10 strings)

Translation: product-attribute-14.0/product-attribute-14.0-packaging_uom
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-14-0/product-attribute-14-0-packaging_uom/es/
@gaelTorrecillas gaelTorrecillas changed the title [MIG][18.0][WIP] packaging uom [MIG][18.0] packaging uom Jan 16, 2025
@gaelTorrecillas gaelTorrecillas changed the title [MIG][18.0] packaging uom [MIG][18.0] packaging uom [WIP] Jan 24, 2025
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.