跳至內容
選單
此問題已被標幟
1 回覆
7109 瀏覽次數

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

頭像
捨棄
作者 最佳答案

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
10月 23
1974
3
4月 25
4674
2
1月 24
1495
5
11月 23
42985
3
9月 23
9471