Skip to Content
Menú
This question has been flagged
2 Respostes
9762 Vistes

Hi, 

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

Thanks

Avatar
Descartar
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.

Avatar
Descartar
Autor 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?



Avatar
Descartar
Related Posts Respostes Vistes Activitat
1
de febr. 22
9642
1
de juny 23
3108
2
de des. 16
5410
5
d’oct. 24
5449
0
de jul. 19
830