From a9bf6ba57f2111bbf7fc4640328205f28028142d Mon Sep 17 00:00:00 2001 From: clesgow Date: Wed, 10 May 2023 12:43:14 +0000 Subject: [PATCH] [FIX] product: display barcode field on new products Following 459760c, the `barcode` field wouldn't appear on a new product form until the form was saved at least once. This was due to the new product not having any variants until it was saved. In the case of the product not having any variants, we check if it does have a least one attribute at the same time (which would be the case for dynamic attributes). closes odoo/odoo#121925 X-original-commit: 5f3db6683ab191cb68af4c8d6bb2e86a5b114ee1 Signed-off-by: Steve Van Essche --- addons/product/views/product_template_views.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/product/views/product_template_views.xml b/addons/product/views/product_template_views.xml index 4bff6d0b04a..44a6c037680 100644 --- a/addons/product/views/product_template_views.xml +++ b/addons/product/views/product_template_views.xml @@ -43,7 +43,8 @@ - + +