Hi,
we want to change the color of a special item in the list view, e.g. when the name contains "test" or name is "test".
<tree colors=blue:name == 'test'">
in the view does not work. How can we realize that?
Thanks!
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi,
we want to change the color of a special item in the list view, e.g. when the name contains "test" or name is "test".
<tree colors=blue:name == 'test'">
in the view does not work. How can we realize that?
Thanks!
Below i am posting the code example for reference
<tree string="My tree View" colors="red:state in ['cancel','close'];#64B5F6:state=='running';#0D47A1:state=='extend';green:state=='complete';#FF4081:state=='finish'" >
Hope this may help you in understanding the tree color pattern .
Peter,
try like this.
<tree colors="blue:<field_name> == <value>;red: <field_name> == <value>" >
Hope it will help
Create an account today to enjoy exclusive features and engage with our awesome community!
Přihlásit seRelated Posts | Odpovědi | Zobrazení | Aktivita | |
---|---|---|---|---|
|
3
pro 23
|
20001 | ||
|
3
dub 24
|
2400 | ||
|
0
pro 19
|
5537 | ||
|
2
říj 22
|
5613 | ||
color code in odoo tree view
Vyřešeno
|
|
3
srp 22
|
7153 |