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>
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project
- MRP
This question has been flagged
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 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
Hello prakash, I have found the solution. Odoo 9 using Decoration instead of coloring.
<tree string="Session Tree" decoration-info="age<2" decoration-danger="age>10">
in v8 color attributes are working well but in v9 its deprecated instead they using decoration
example
<tree decoration-success>
have a look on color in the below link
https://www.odoo.com/documentation/9.0/reference/views.html#lists
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up