El 03/05/15 a les 14:13, Simon Klemenc ha escrit:
hi there,
in mirgration from 3.4 to 3.6 i recognized that the pyson for tree color
must have changed and i might need some help.
My pyson is:
<tree string="Invoices"    colors="If(Bool(Eval('is_marked')), 'purple',
If(Greater(Eval('amount_to_pay_today',0), 0), 'red', 'black'))">

You must use view_attributes [1], you have an example in [2]


[1] http://doc.tryton.org/3.6/trytond/doc/ref/models/models.html?highlight=view_attributes#trytond.model.ModelView.view_attributes

[2] http://hg.tryton.org/trytond/file/df6976b9c0e7/trytond/ir/module/module.py#l124

--
Sergi Almacellas Abellana
www.koolpi.com
Twitter: @pokoli_srk

Reply via email to