Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
7100 Tampilan

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
Buang
Penulis Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
0
Okt 23
1969
3
Apr 25
4668
2
Jan 24
1489
5
Nov 23
42972
3
Sep 23
9467