summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
Diffstat (limited to 'addons')
-rw-r--r--addons/product/views/product_template_views.xml4
1 files changed, 3 insertions, 1 deletions
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 @@
<field name="model">product.template</field>
<field name="arch" type="xml">
<tree string="Product" multi_edit="1">
+ <field name="product_variant_count" invisible="1"/>
+
<field name="sequence" widget="handle" readonly="1"/>
<field name="default_code" optional="show"/>
- <field name="barcode" optional="hide"/>
+ <field name="barcode" optional="hide" attrs="{'readonly': [('product_variant_count', '>', 1)]}"/>
<field name="name"/>
<field name="company_id" options="{'no_create_edit': True}"
groups="base.group_multi_company" optional="hide"/>