Created
July 3, 2018 04:01
-
-
Save akhmadkresna/10ba24ea9e15e2561161ce422a26802d to your computer and use it in GitHub Desktop.
add color in record odoo treeview
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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