[IMP]stock:put attrs in tree view

bzr revid: ron@tinyerp.com-20110629070715-034200f7ehabtrph
This commit is contained in:
ron@tinyerp.com
2011-06-29 12:37:15 +05:30
parent 82e6820f8b
commit af951d8ed6
@@ -29,10 +29,7 @@
<field name="product_id" />
<field name="quantity" />
<field name="product_uom" />
<!--When you click the "Validate" button, moves disappear
(product track_incoming or track_outgoing field must be True)
if "attrs="{'required'('tracking','=',True)]}" is specified in prodlot_id field of the tree view -->
<field name="prodlot_id" domain="[('product_id', '=', product_id)]" groups="base.group_extended" />
<field name="prodlot_id" domain="[('product_id', '=', product_id)]" groups="base.group_extended" attrs="{'required':[('tracking','=',True)]}"/>
<field name="tracking" invisible="1"/>
<field name="cost" />
<field name="currency" />
@@ -66,10 +63,7 @@
<field name="product_id" />
<field name="quantity" />
<field name="product_uom" />
<!--When you click the "Validate" button, all moves disappear
(product track_incoming or track_outgoing field must be True)
if "attrs="{'required'('tracking','=',True)]}" is specified in prodlot_id field of the tree view -->
<field name="prodlot_id" domain="[('product_id', '=', product_id)]" groups="base.group_extended" />
<field name="prodlot_id" domain="[('product_id', '=', product_id)]" groups="base.group_extended" attrs="{'required':[('tracking','=',True)]}"/>
<field name="tracking" invisible="1"/>
</tree>
</field>