Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
2 Besvarelser
9515 Visninger

Hi, 

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

Thanks

Avatar
Kassér
Bedste svar

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.

Avatar
Kassér
Forfatter Bedste svar

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?



Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
1
feb. 22
9197
1
jun. 23
2767
2
dec. 16
5119
5
okt. 24
4500
0
jul. 19
830