Skip to Content
Menu
This question has been flagged
1 Atsakyti
7153 Rodiniai

hi guys,

I want to highlight some values in a listview. For example: if a field contains "whatever" the background color of that specific field in the table should be green.

Is that possible or do I have to implement a new type of listview?

thx Peter

Portretas
Atmesti
Autorius Best Answer

So I found a way to highlight a whole line by adding:

<tree colors="red:my_key='my_value'">

to my xml view file.

like mentioned here:

http://www.odoo.com/forum/Help-1/question/Modify-colors-in-tree-view-v7-using-view-inheritance-17048

But if only one field not the whole line is needed to colorize the qweb template must be modified.

Take a look here:

http://www.odoo.com/forum/Help-1/question/inheritextend-ListViewrow-from-basexml-47136

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
0
spal. 23
1994
3
bal. 25
4718
2
saus. 24
1519
5
lapkr. 23
43039
3
rugs. 23
9496