Skip to content

[17.0][MIG] product_total_weight_from_packaging: Migration to 17.0#1629

Closed
nguyenminhchien wants to merge 20 commits intoOCA:17.0from
nguyenminhchien:17.0-mig-product_total_weight_from_packaging
Closed

[17.0][MIG] product_total_weight_from_packaging: Migration to 17.0#1629
nguyenminhchien wants to merge 20 commits intoOCA:17.0from
nguyenminhchien:17.0-mig-product_total_weight_from_packaging

Conversation

@nguyenminhchien
Copy link
Contributor

@nguyenminhchien nguyenminhchien commented Jun 11, 2024

@nguyenminhchien nguyenminhchien mentioned this pull request Jun 11, 2024
69 tasks
@nguyenminhchien nguyenminhchien marked this pull request as ready for review June 11, 2024 04:03
@leemannd
Copy link
Contributor

Hello @grindtildeath If you have time a review is welcome as you worked on this module

@gurneyalex
Copy link
Member

/ocabot migration product_total_weight_from_packaging

@OCA-git-bot OCA-git-bot added this to the 17.0 milestone Jul 19, 2024
@gurneyalex
Copy link
Member

@nguyenminhchien The dependency PRs were merged. Can you update this PR?

grindtildeath and others added 20 commits August 30, 2024 10:12
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: product-attribute-16.0/product-attribute-16.0-product_total_weight_from_packaging
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_total_weight_from_packaging/
…x_weight

The max_weight is a concept that was introduced in odoo delivery module to define the transporter weight limit for the shipped packaging. Before v16, the transporter packaging and product packaging was the same model product.packaging. Now the transporter packaging is moved to the model stock.package.type.
In v13, max_weight defined in delivery module on product.packaging was used also for product packaging dimension.
In v14, the weight field was added on the product.packaging and the max_weight was still coming from delivery module. This was introducing inconsistency as some modules migrated from v13 to v14 still rely on max_weight and some rely on the new weight field.
In v16, we have to drop this max_weight on product.packaging as the delivery module moved it to stock.package.type and we should rely only on the weight field.
The migration of the product_packaging_dimension OCA#1161 has to be fixed to not expose the old max_weight field and any data on max_weight must be moved to weight if empty.

This module also deserves a big warning that it is lacking the weight uom conversions as it depends on product_packaging_dimension that depends on product_logistics_uom that allows to set a uom on the weight. The sum in this module is assuming all weights are in kg

Co-authored-by: Jacques-Etienne Baudoux <je@bcim.be>
@nguyenminhchien nguyenminhchien force-pushed the 17.0-mig-product_total_weight_from_packaging branch from e6700a3 to 3885c7d Compare August 30, 2024 03:12
@nguyenminhchien
Copy link
Contributor Author

nguyenminhchien commented Aug 30, 2024

@nguyenminhchien The dependency PRs were merged. Can you update this PR?

Hi @gurneyalex, updated.

@github-actions
Copy link

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Dec 29, 2024
@github-actions github-actions bot closed this Mar 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale PR/Issue without recent activity, it'll be soon closed automatically.

Projects

None yet

Development

Successfully merging this pull request may close these issues.