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.


color differentiating tree view

Milva Joy
on 4/15/15, 7:37 AM 930 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




Temmy Steveo
On 4/15/15, 11:30 AM

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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 4/15/15, 7:37 AM
Seen: 930 times
Last updated: 4/15/15, 11:30 AM