From 459760c4220e80b5c67567a7af57c05959363742 Mon Sep 17 00:00:00 2001 From: clesgow Date: Wed, 19 Apr 2023 13:51:16 +0000 Subject: [PATCH] [FIX] product: hide barcode when with dynamic variants Steps to reproduce: - Inventory -> Configuration -> [Products] Attributes - Create new Attribute with 'Variants Creation Mode' set to 'Dynamically' with a few values - Inventory -> Products -> Products -> New - Set the new dynamic attribute to the product and save - If you try to set a barcode, the field will empty itself at each save When a product is created with 'Dynamic' attributes, the variants will only be created once the combination of attributes is used. So initially there is no variant, hence nowhere to set the barcode. So we avoid letting the attribute being set when there is still no variant. Part of task-3218314 Part-of: odoo/odoo#119381 --- addons/product/views/product_template_views.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/product/views/product_template_views.xml b/addons/product/views/product_template_views.xml index 742f58810a4..4bff6d0b04a 100644 --- a/addons/product/views/product_template_views.xml +++ b/addons/product/views/product_template_views.xml @@ -16,7 +16,7 @@ - + @@ -43,7 +43,7 @@ - +