summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@odoo.com>2014-06-03 11:13:50 +0200
committerChristophe Matthieu <chm@odoo.com>2014-06-03 11:13:50 +0200
commitda6f02027a65244405b69b595dbdb6467e0aaabc (patch)
treec263f4de628e3fd19ff7eb9a811351448b030997
parentcaf4bf77bc568070636f6c2e2d4c90235e98e919 (diff)
[FIX] product: set required at false for product template field when creating a product product.
-rw-r--r--addons/product/product_view.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/product/product_view.xml b/addons/product/product_view.xml
index 9b5770a565d..ddecdea996b 100644
--- a/addons/product/product_view.xml
+++ b/addons/product/product_view.xml
@@ -270,7 +270,7 @@
</form>
<field name="name" position="replace">
<field name="name" attrs="{'invisible': [('id', '!=', False)]}"/>
- <field name="product_tmpl_id" class="oe_inline" readonly="1" attrs="{'invisible': [('id', '=', False)]}"/>
+ <field name="product_tmpl_id" class="oe_inline" readonly="1" attrs="{'invisible': [('id', '=', False)], 'required': [('id', '!=', False)]}"/>
</field>
<xpath expr="//div[@class='oe_title']" position="inside">
<field name="attribute_value_ids" widget="many2many_tags"/>