On 04 May 09:39, Sergi Almacellas Abellana wrote:
> 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]
Or you can still put a dumped JSON attribute but it is more verbose.
--
Cédric Krier - B2CK SPRL
Email/Jabber: [email protected]
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/