Skip to content

Instantly share code, notes, and snippets.

@akhmadkresna
Created July 3, 2018 04:01
Show Gist options
  • Save akhmadkresna/10ba24ea9e15e2561161ce422a26802d to your computer and use it in GitHub Desktop.
Save akhmadkresna/10ba24ea9e15e2561161ce422a26802d to your computer and use it in GitHub Desktop.
add color in record odoo treeview
<tree decoration-success="state=='confirm'" decoration-danger="state=='reject'">
<field name="product_id"/>
<field name="state" invisible="1"/>
</tree>
<!-- Here is the detail for available color -->
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment