[19.0][MIG] product_barcode_required: Migration to 19.0#2282
Open
BhaveshHeliconia wants to merge 23 commits into
Open
[19.0][MIG] product_barcode_required: Migration to 19.0#2282BhaveshHeliconia wants to merge 23 commits into
BhaveshHeliconia wants to merge 23 commits into
Conversation
Barcode on product template should not be required if you have more than 1 variant. When more than 1 variant is generated the field is hidden and you cannot populate it anyway. This, for instance, prevents duplicating products with more than one variant.
When we create a product template and select variant attributes, it
creates variants under the hood. The context key in
`_create_variant_ids` allows to bypass the check on the barcode, which
would be blocking.
If we have a related or computed field triggered by a create/write on a
product.template (`@api.depends('product_tmpl_id.foo')`), the check is
triggered and blocks the creation/write on the template.
We have then to ignore the check on variants on any create/write on
templates.
Currently translated at 100.0% (13 of 13 strings) Translation: product-attribute-13.0/product-attribute-13.0-product_barcode_required Translate-URL: https://translation.odoo-community.org/projects/product-attribute-13-0/product-attribute-13-0-product_barcode_required/es/
Currently translated at 100.0% (13 of 13 strings) Translation: product-attribute-13.0/product-attribute-13.0-product_barcode_required Translate-URL: https://translation.odoo-community.org/projects/product-attribute-13-0/product-attribute-13-0-product_barcode_required/ca/
Currently translated at 100.0% (14 of 14 strings) Translation: product-attribute-14.0/product-attribute-14.0-product_barcode_required Translate-URL: https://translation.odoo-community.org/projects/product-attribute-14-0/product-attribute-14-0-product_barcode_required/ca/
Currently translated at 100.0% (14 of 14 strings) Translation: product-attribute-14.0/product-attribute-14.0-product_barcode_required Translate-URL: https://translation.odoo-community.org/projects/product-attribute-14-0/product-attribute-14-0-product_barcode_required/it/
Currently translated at 100.0% (14 of 14 strings) Translation: product-attribute-14.0/product-attribute-14.0-product_barcode_required Translate-URL: https://translation.odoo-community.org/projects/product-attribute-14-0/product-attribute-14-0-product_barcode_required/es/
9c5d534 to
f77baf2
Compare
73 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.