El jueves, 3 de agosto de 2017, 6:03:09 (UTC-3), Sergi Almacellas Abellana
escribió:
>
> El 01/08/17 a les 16:54, Francisco Maria Moyano Casco ha escrit:
> > Hi,
> > I can't make work the view attribute classmethod. The code I use
> > is this:
> >
> > * @classmethod
> > def view_attributes(cls):
> > return [('/tree', 'colors', 'yellow'),]
> >
> > *Is there any example of how to use it with colors attribute?
> The colors attribute has been removed since version 3.8. See:
>
> https://bugs.tryton.org/issue4861
>
> for the full rational.
>
>
>
> --
> Sergi Almacellas Abellana
> www.koolpi.com
> Twitter: @pokoli_srk
>
So, there is no way to put some color on the tree list like before? Is
there anything to replace that feature?
I need some elements on the three to change a property (colour was what I
used for) depending on the state of the register. Something like "If state
== urgent then color = red, elif state == not so urgent then color = blue,
else color = green". Do you know what I mean?
Thanks
Francisco
--
You received this message because you are subscribed to the Google Groups
"tryton" group.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tryton/fa13ef86-1b6e-405c-91db-6fddc9cdd08c%40googlegroups.com.