Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
9777 Zobrazení

Hi, 

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

Thanks

Avatar
Zrušit
Nejlepší odpověď

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
Zrušit
Autor Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
úno 22
9649
1
čvn 23
3116
2
pro 16
5413
5
říj 24
5473
0
čvc 19
830