On Monday, May 4, 2015 at 10:00:05 AM UTC+2, Cédric Krier wrote:
>
> 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.
>
> Thanks!
view_attributes worked for me...
(Maybe it is possible to put a json-example into the docs + maybe even a
cross-reference from view/colors to view_attributes?)
> --
> Cédric Krier - B2CK SPRL
> Email/Jabber: [email protected] <javascript:>
> Tel: +32 472 54 46 59
> Website: http://www.b2ck.com/
>