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

Hi, 

Someone knows how to change background-color of file in tree view with one condition?

Thanks

頭像
捨棄
最佳答案

hello..


Try this in your css file...
.openerp .oe_list_content > tbody > tr:nth-child(odd) {

   background-image: linear-gradient(to bottom, #f0f0fa, #eeeef6);
}


  Hope this will help you.

頭像
捨棄
作者 最佳答案

thank you ,

With This code i can change the color in the tree view but , how can i put the condition ?

for example:

if ('state' == 'draft') {

    //apply one style

} else{

    // apply other style

}

i should do it from javascript?



頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
2月 22
9648
1
6月 23
3116
2
12月 16
5412
5
10月 24
5469
0
7月 19
830