[FIX] stock: colors in tree view depending on virtual available

Colors were no more applied. colors attribute from tree expects a semicolon separated string, not a dict.

Regression introduced during b414e05a41
This commit is contained in:
Denis Ledoux 2015-01-12 19:06:18 +01:00
parent 5e3de76f36
commit e28e01a70f
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@
<field name="inherit_id" ref="product.product_template_tree_view"/>
<field name="arch" type="xml">
<tree position="attributes">
<attribute name="colors">{'red':virtual_available&lt;0, 'blue':virtual_available&gt;=0 and state in ('draft', 'end', 'obsolete'), 'black':virtual_available&gt;=0 and state not in ('draft', 'end', 'obsolete')}</attribute>
<attribute name="colors">red:virtual_available&lt;0;blue:virtual_available&gt;=0 and state in ('draft', 'end', 'obsolete');black:virtual_available&gt;=0 and state not in ('draft', 'end', 'obsolete')</attribute>
</tree>
<field name="uom_id" position="after">
<field name="qty_available"/>