-
-
Notifications
You must be signed in to change notification settings - Fork 715
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
[18.0][MIG] product_packaging_level: Migration to 18.0 #1806
base: 18.0
Are you sure you want to change the base?
Conversation
/ocabot migration product_packaging_level |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LG, I made a comment on the v17 migration PR about a change that should land there, and not in the v18 migration commit IMO: #1662
But not blocking.
|
6ec3f39
to
547e2ac
Compare
547e2ac
to
3970b1c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR has the |
def _compute_display_name(self): | ||
for record in self: | ||
if record.product_id and record.packaging_level_id: | ||
record.display_name = record._get_name_from_policy(lang=self.env.lang) | ||
else: | ||
return super()._compute_display_name() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't correct.
it's not properly handling the recordset. The return shouldn't be within the loop.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @ivantodorovich, indeed, I updated the code, will include it in the backport as well: #1809
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: product-attribute-16.0/product-attribute-16.0-product_packaging_level Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_packaging_level/
Currently translated at 100.0% (25 of 25 strings) Translation: product-attribute-16.0/product-attribute-16.0-product_packaging_level Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_packaging_level/es/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: product-attribute-16.0/product-attribute-16.0-product_packaging_level Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_packaging_level/
Currently translated at 100.0% (32 of 32 strings) Translation: product-attribute-16.0/product-attribute-16.0-product_packaging_level Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_packaging_level/es/
Currently translated at 71.8% (23 of 32 strings) Translation: product-attribute-16.0/product-attribute-16.0-product_packaging_level Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_packaging_level/it/
Currently translated at 100.0% (32 of 32 strings) Translation: product-attribute-16.0/product-attribute-16.0-product_packaging_level Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_packaging_level/it/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: product-attribute-16.0/product-attribute-16.0-product_packaging_level Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_packaging_level/
Currently translated at 100.0% (32 of 32 strings) Translation: product-attribute-16.0/product-attribute-16.0-product_packaging_level Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_packaging_level/es/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: product-attribute-16.0/product-attribute-16.0-product_packaging_level Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_packaging_level/
Currently translated at 100.0% (34 of 34 strings) Translation: product-attribute-16.0/product-attribute-16.0-product_packaging_level Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_packaging_level/es/
Currently translated at 100.0% (34 of 34 strings) Translation: product-attribute-16.0/product-attribute-16.0-product_packaging_level Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_packaging_level/it/
Currently translated at 100.0% (34 of 34 strings) Translation: product-attribute-16.0/product-attribute-16.0-product_packaging_level Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_packaging_level/it/
3970b1c
to
0239c61
Compare
0239c61
to
b16bbf3
Compare
Note
Changes in 18.0
This changes
[FIX] product_packaging_level: cannot input name with user_defined policy
_active_languages
is not available inproduct.packaging.level
, which is also an issue in 16.0 when it's introduced [16.0][IMP]product_packaging_level: recover name_get policy flow #1527