[IMP] mrp:improved code for tree view

bzr revid: tpa@tinyerp.com-20120419101638-ltl5621fdkyyv8yr
This commit is contained in:
Turkesh Patel (Open ERP) 2012-04-19 15:46:38 +05:30
parent a326d17fab
commit 3ebc3652ff
1 changed files with 2 additions and 1 deletions

View File

@ -573,7 +573,8 @@
<field name="model">mrp.production</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree colors="blue:state in ('draft','confirmed');red:date_planned&lt;current_date and state not in ('done','cancel');black:date_planned&gt;=current_date;gray:state in ('done','cancel') " string="Manufacturing Orders">
<tree fonts="bold:needaction_pending==True" colors="blue:state in ('draft','confirmed');red:date_planned&lt;current_date and state not in ('done','cancel');black:date_planned&gt;=current_date;gray:state in ('done','cancel') " string="Manufacturing Orders">
<field name="needaction_pending" invisible="1"/>
<field name="name"/>
<field name="date_planned"/>
<field name="product_id"/>