跳至内容
菜单
此问题已终结
2 回复
9756 查看

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
9641
1
6月 23
3108
2
12月 16
5406
5
10月 24
5444
0
7月 19
830