Skip to content

Commit

Permalink
[FIX] product: Hide product variant field if option not actived
Browse files Browse the repository at this point in the history
Purpose
=======

If the group_product_variant is not activated, the field should be hidden
  • Loading branch information
tivisse committed Dec 5, 2017
1 parent 150fc06 commit 03375da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/product/views/product_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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"/>
Expand Down

0 comments on commit 03375da

Please sign in to comment.