stock_usability: add colors in inventory tree view

This commit is contained in:
Alexis de Lattre
2019-07-30 22:30:40 +02:00
parent d2978475b8
commit 4b442bd11b

View File

@@ -361,6 +361,10 @@ should be able to access it. So I add a menu entry under Inventory Control. -->
<field name="date" position="after">
<field name="location_id" groups="stock.group_stock_multi_locations"/>
</field>
<tree position="attributes">
<attribute name="decoration-info">state == 'draft'</attribute>
<attribute name="decoration-warning">state == 'confirm'</attribute>
</tree>
</field>
</record>