From bc9fdfff88fc05a5241e1b58e7256e4d810d4b90 Mon Sep 17 00:00:00 2001 From: Simon Lejeune Date: Fri, 6 Dec 2019 10:14:40 +0000 Subject: [PATCH] [FIX] product: multi edit barcode field on template Writing barcode on a template will only write it on the variants if the variant count is 1. Make the field readonly on the view according to this condition. closes odoo/odoo#41489 X-original-commit: a67ad076f4c079f33602f01ed2b8cbf741aeffc5 Signed-off-by: Simon Lejeune (sle) --- addons/product/views/product_template_views.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addons/product/views/product_template_views.xml b/addons/product/views/product_template_views.xml index 0d8ebcf0a1b..15a4f1fb5d7 100644 --- a/addons/product/views/product_template_views.xml +++ b/addons/product/views/product_template_views.xml @@ -5,9 +5,11 @@ product.template + + - +