Odoo Help


Modify colors in tree view (v8) website.support.ticket

on 10/12/16, 12:17 PM 372 views

Is possible change the color the state?

I have tried with colored in <tree colors = "red: state == 'Open'"> but it did not work

Sorry my English!

On 10/19/16, 2:22 AM

I try this: decoration-primary="state=='Aperto'" but no good i have try: decoration-primary="state==('16,Aperto')" 16 is "id" but not work

Thank You 

Giezel Esteves
On 10/18/16, 10:18 PM

Use 'decoration' attribute

Try these:

decoration-bf - shows the line in BOLD

decoration-it - shows the line in ITALICS

decoration-danger - shows the line in LIGHT RED

decoration-info - shows the line in LIGHT BLUE

decoration-muted - shows the line in LIGHT GRAY

decoration-primary - shows the line in LIGHT PURPLE

decoration-success - shows the line in LIGHT GREEN

decoration-warning - shows the line in LIGHT BROWN

<tree decoration-muted="state=='draft'" decoration-info="state == 'confirm'">

Axel Mendoza
On 10/17/16, 1:26 AM

Just make sure that the field state is part of the tree view definition and also that you are using the proper state value instead of the display name as selection fields are composed of tuple of (value, display_name) and probably your comparison is not with 'Open', probably is with 'open' if the selection value is defined like ('open', 'Open')

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 10/12/16, 12:17 PM
Seen: 372 times
Last updated: 10/19/16, 2:22 AM