Skip to Content
Menu
This question has been flagged
2 Replies
9512 Rodiniai

Hi, 

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

Thanks

Portretas
Atmesti
Best Answer

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.

Portretas
Atmesti
Autorius Best Answer

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?



Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
vas. 22
9194
1
birž. 23
2762
2
gruod. 16
5117
5
spal. 24
4494
0
liep. 19
830