[FIX] product: set required at false for product template field when creating a product product.

This commit is contained in:
Christophe Matthieu 2014-06-03 11:13:50 +02:00
parent caf4bf77bc
commit da6f02027a
1 changed files with 1 additions and 1 deletions

View File

@ -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"/>