Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
7127 Weergaven

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

Avatar
Annuleer
Auteur Beste antwoord

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

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
0
okt. 23
1986
3
apr. 25
4688
2
jan. 24
1504
5
nov. 23
43010
3
sep. 23
9484