コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
9760 ビュー

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
9642
1
6月 23
3108
2
12月 16
5410
5
10月 24
5448
0
7月 19
830