[FIX] product: Hide product variant field if option not actived

Purpose
=======

If the group_product_variant is not activated, the field should be hidden
This commit is contained in:
Yannick Tivisse
2017-12-05 14:26:56 +01:00
parent 150fc064fd
commit 03375dad3c
+1 -1
View File
@@ -559,7 +559,7 @@
<tree string="Vendor Information">
<field name="sequence" widget="handle"/>
<field name="name"/>
<field name="product_id" invisible="context.get('product_template_invisible_variant', False)"/>
<field name="product_id" invisible="context.get('product_template_invisible_variant', False)" groups="product.group_product_variant"/>
<field name="product_tmpl_id" string="Product" invisible="context.get('visible_product_tmpl_id', True)"/>
<field name="min_qty"/>
<field name="price" string="Price"/>