Odoo Help


color differentiating tree view

Milva Joy
on 4/15/15, 7:37 AM 1,181 views

how to differentiate rows by color code based on a condition?

Alby Antony
On 4/15/15, 7:38 AM

these links could help you to do that





Here is example of how you can set colors and fonts in tree view

<record id="todo_app.view_tree_todo_task" model="ir.ui.view">
  <field name="name">To-do Task Tree</field>
  <field name="model">todo.task</field>
  <field name="arch" type="xml">
    <tree editable="bottom"colors="gray:is_done==True" fonts="italic: state!='open'" delete="false">
      <field name="name"/>
      <field name="user_id"/>


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 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: 4/15/15, 7:37 AM
Seen: 1181 times
Last updated: 4/15/15, 11:30 AM