diff options
| author | Yannick Tivisse <yti@odoo.com> | 2017-12-05 14:26:56 +0100 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2017-12-05 14:26:56 +0100 |
| commit | 03375dad3c7867eb3a16af2f9b529c7273c93f3c (patch) | |
| tree | 562b0647437130641e0bf07752b3265c95d8246c /addons | |
| parent | 150fc064fd1481616d665b6f6f4ce8a4123d3f6a (diff) | |
[FIX] product: Hide product variant field if option not actived
Purpose
=======
If the group_product_variant is not activated, the field should be hidden
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/product/views/product_views.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/product/views/product_views.xml b/addons/product/views/product_views.xml index f05e78e6667..0e192af09c2 100644 --- a/addons/product/views/product_views.xml +++ b/addons/product/views/product_views.xml @@ -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"/> |
