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

[16.0][MIG] product_total_weight_from_packaging: Migrate to 16.0 #3

Merged
merged 209 commits into from
Mar 12, 2024

Conversation

QuocDuong1306
Copy link
Owner

No description provided.

@QuocDuong1306 QuocDuong1306 force-pushed the 16.0-mig-product_total_weight_from_packaging branch 2 times, most recently from 8b1d232 to 270a71c Compare August 24, 2023 02:19
Copy link

@dzungtran89 dzungtran89 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

dcorio and others added 9 commits August 29, 2023 08:11
Currently translated at 100.0% (2 of 2 strings)

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

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

Translation: product-attribute-16.0/product-attribute-16.0-product_sequence
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_sequence/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/es/
Currently translated at 100.0% (12 of 12 strings)

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

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

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

Translation: product-attribute-16.0/product-attribute-16.0-product_supplierinfo_for_customer
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_supplierinfo_for_customer/es/
OCA-git-bot and others added 26 commits September 27, 2023 15:02
The field `secondary_uom_qty` is defined in the mixin class
`product.secondary.unit.mixin` as being computed, but without
precomputation. This makes that when this field is used in
the variable `_secondary_unit_fields` for classes using the
mixing, it ends up as a dependency of other fields that are
computed and do require precomputation. But, not being the
field `secondary_uom_qty` precomputed, it disables the
precomputation of those other fields.

This has an impact when installing the module `sale` along
with the module `product_secondary_unit`, which causes the
module `sale_order_secondary_unit` to be auto-installed. As
a result, the following errors appear in the log, disabling
the precomputation of 11 other fields:

```text
/opt/project/repos/odoo/odoo/fields.py:802: UserWarning: Field sale.order.line.product_uom_qty cannot be precomputed as it depends on non-precomputed field sale.order.line.secondary_uom_qty
/opt/project/repos/odoo/odoo/fields.py:802: UserWarning: Field sale.order.line.price_unit cannot be precomputed as it depends on non-precomputed field sale.order.line.product_uom_qty
/opt/project/repos/odoo/odoo/fields.py:802: UserWarning: Field sale.order.line.discount cannot be precomputed as it depends on non-precomputed field sale.order.line.product_uom_qty
/opt/project/repos/odoo/odoo/fields.py:802: UserWarning: Field sale.order.line.price_reduce cannot be precomputed as it depends on non-precomputed field sale.order.line.price_unit
/opt/project/repos/odoo/odoo/fields.py:802: UserWarning: Field sale.order.line.price_subtotal cannot be precomputed as it depends on non-precomputed field sale.order.line.product_uom_qty
/opt/project/repos/odoo/odoo/fields.py:802: UserWarning: Field sale.order.line.price_tax cannot be precomputed as it depends on non-precomputed field sale.order.line.product_uom_qty
/opt/project/repos/odoo/odoo/fields.py:802: UserWarning: Field sale.order.line.price_total cannot be precomputed as it depends on non-precomputed field sale.order.line.product_uom_qty
/opt/project/repos/odoo/odoo/fields.py:802: UserWarning: Field sale.order.line.price_reduce_taxexcl cannot be precomputed as it depends on non-precomputed field sale.order.line.price_subtotal
/opt/project/repos/odoo/odoo/fields.py:802: UserWarning: Field sale.order.line.price_reduce_taxinc cannot be precomputed as it depends on non-precomputed field sale.order.line.price_total
/opt/project/repos/odoo/odoo/fields.py:802: UserWarning: Field sale.order.line.product_packaging_id cannot be precomputed as it depends on non-precomputed field sale.order.line.product_uom_qty
/opt/project/repos/odoo/odoo/fields.py:802: UserWarning: Field sale.order.line.product_packaging_qty cannot be precomputed as it depends on non-precomputed field sale.order.line.product_packaging_id
```

Making `secondary_uom_qty` precomputed solves these warnings.
Signed-off-by pedrobaeza
…ply query if column max_weight exists.

This column is no longer defined in 16.0
Signed-off-by JordiBForgeFlow
Currently translated at 100.0% (1 of 1 strings)

Translation: product-attribute-13.0/product-attribute-13.0-product_total_weight_from_packaging
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-13-0/product-attribute-13-0-product_total_weight_from_packaging/es/
@QuocDuong1306 QuocDuong1306 force-pushed the 16.0-mig-product_total_weight_from_packaging branch from e331f71 to 9e06736 Compare October 5, 2023 03:13
@QuocDuong1306 QuocDuong1306 force-pushed the 16.0-mig-product_total_weight_from_packaging branch from 9e06736 to 204d6d1 Compare October 5, 2023 04:16
@QuocDuong1306 QuocDuong1306 merged commit 7142906 into 16.0 Mar 12, 2024
6 checks passed
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.