[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:
parent
5e3de76f36
commit
e28e01a70f
|
@ -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<0, 'blue':virtual_available>=0 and state in ('draft', 'end', 'obsolete'), 'black':virtual_available>=0 and state not in ('draft', 'end', 'obsolete')}</attribute>
|
||||
<attribute name="colors">red:virtual_available<0;blue:virtual_available>=0 and state in ('draft', 'end', 'obsolete');black:virtual_available>=0 and state not in ('draft', 'end', 'obsolete')</attribute>
|
||||
</tree>
|
||||
<field name="uom_id" position="after">
|
||||
<field name="qty_available"/>
|
||||
|
|
Loading…
Reference in New Issue