Odoo Help


This community 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.


colors in odoo9

on 5/6/16, 1:50 AM 341 views

colors type in xml is not working in odoo9. could u help me guys . <tree editable="bottom" colors="gray:is_done==True" fonts="italic: state!='open'" delete="false">      <field name="name"/>      <field name="user_id"/>    </tree>

Giezel Esteves
On 7/27/16, 11:27 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

On 7/27/16, 6:42 AM

in v8 color attributes are working well but in v9 its deprecated instead they using decoration 


<tree decoration-success>

 have a look on color in the below link


On 5/6/16, 2:34 AM

 <tree editable="bottom"colors="gray:is_done==True" fonts="italic: state!='open'" delete="false">      <field name="name"/>      <field name="user_id"/>    </tree>  

This above code is not working in odoo9

UPDATE:: In version 9, colors are replaced with Decoration like decoration_info to indicate Blue color, decoration_danger for RED like this the colors are working in V9

put the space between "bottom" and colors

Prakash Sharma
on 5/6/16, 3:26 AM

Hello prakash, I have found the solution. Odoo 9 using Decoration instead of coloring.

<tree string="Session Tree" decoration-info="age&lt;2" decoration-danger="age&gt;10">

on 6/6/16, 9:16 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)


Asked: 5/6/16, 1:50 AM
Seen: 341 times
Last updated: 7/27/16, 11:27 PM