Skip to content

Conversation

@arantxa-s73
Copy link

Module migrated to version 19.0

alfredo and others added 30 commits November 11, 2025 13:48
…der_default_code

Separate the default code assignment in 2 steps, one obtains the
code and the other set this value on product.
Now is easier to extend this method.
* IMP dependency, field name, complete view

* FIX move sale.settings to base settings

* IMP reference mask use untranslate attribute names

* FIX some tests with @chienandalu remarks
* [IMP] Improve French (fr) translation
* [FIX] Fixed bad display of config. settings
* [FIX] Display product attribute value code when open the product attribute form view from product form view
Currently translated at 63.6% (14 of 22 strings)

Translation: product-variant-12.0/product-variant-12.0-product_variant_default_code
Translate-URL: https://translation.odoo-community.org/projects/product-variant-12-0/product-variant-12-0-product_variant_default_code/hr/
Currently translated at 100.0% (22 of 22 strings)

Translation: product-variant-12.0/product-variant-12.0-product_variant_default_code
Translate-URL: https://translation.odoo-community.org/projects/product-variant-12-0/product-variant-12-0-product_variant_default_code/pt/
missing the possibility to edit of attribute code in form view (and also tree view)
It was present in tree view, but not in form view, and now the tree
is not editable.
When a variant is created, the mask is evaluated expecting the main
language term, so we should avoid taking the translated value when we
are in another language.
When an attribute code is already set, we don't wan't to change it by
chance if we set a new name in the value. The onchange should be just a
helper to fill the initial value but it should be manually changed if
needed later on.
Tests can conflict with constriants added by other modules for the default_code
We should create different product templates only if we can be sure they will compute different default_codes, otherwise they might trigger the unique(default_code) constrainted, if introduced by another module.

TT28423
francesco-ooops and others added 24 commits November 11, 2025 13:48
Currently translated at 100.0% (27 of 27 strings)

Translation: product-variant-14.0/product-variant-14.0-product_variant_default_code
Translate-URL: https://translation.odoo-community.org/projects/product-variant-14-0/product-variant-14-0-product_variant_default_code/it/
When a product is being created or edited and attributes have not yet
been added, a message is printed out in the band in case the reference
prefix has not been filled in. If there is no error, this strip should
remain hidden.

TT42976
Currently translated at 100.0% (24 of 24 strings)

Translation: product-variant-16.0/product-variant-16.0-product_variant_default_code
Translate-URL: https://translation.odoo-community.org/projects/product-variant-16-0/product-variant-16-0-product_variant_default_code/it/
Currently translated at 100.0% (24 of 24 strings)

Translation: product-variant-16.0/product-variant-16.0-product_variant_default_code
Translate-URL: https://translation.odoo-community.org/projects/product-variant-16-0/product-variant-16-0-product_variant_default_code/it/
Currently translated at 95.8% (23 of 24 strings)

Translation: product-variant-16.0/product-variant-16.0-product_variant_default_code
Translate-URL: https://translation.odoo-community.org/projects/product-variant-16-0/product-variant-16-0-product_variant_default_code/pt_BR/
Currently translated at 100.0% (24 of 24 strings)

Translation: product-variant-16.0/product-variant-16.0-product_variant_default_code
Translate-URL: https://translation.odoo-community.org/projects/product-variant-16-0/product-variant-16-0-product_variant_default_code/it/
Currently translated at 91.6% (22 of 24 strings)

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

Translation: product-variant-16.0/product-variant-16.0-product_variant_default_code
Translate-URL: https://translation.odoo-community.org/projects/product-variant-16-0/product-variant-16-0-product_variant_default_code/pt_BR/
Currently translated at 100.0% (24 of 24 strings)

Translation: product-variant-18.0/product-variant-18.0-product_variant_default_code
Translate-URL: https://translation.odoo-community.org/projects/product-variant-18-0/product-variant-18-0-product_variant_default_code/it/
Currently translated at 100.0% (24 of 24 strings)

Translation: product-variant-18.0/product-variant-18.0-product_variant_default_code
Translate-URL: https://translation.odoo-community.org/projects/product-variant-18-0/product-variant-18-0-product_variant_default_code/it/
Copy link

@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

Copy link

@pablo-cort-s73 pablo-cort-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
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). 🤖

@Reyes4711-S73
Copy link

Reyes4711-S73 commented Nov 18, 2025

@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.