10 lines
519 B
XML
10 lines
519 B
XML
<data inherit_id="purchase.purchase_order_view_tree" priority="50">
|
|
<xpath expr="//field[@name='state']" position="attributes">
|
|
<attribute name="invisible">0</attribute>
|
|
<attribute name="widget">badge</attribute>
|
|
<attribute name="decoration-success">state == 'purchase' or state == 'done'</attribute>
|
|
<attribute name="decoration-warning">state == 'to approve'</attribute>
|
|
<attribute name="decoration-info">state == 'draft' or state == 'sent'</attribute>
|
|
</xpath>
|
|
</data>
|