Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
9779 Widoki

Hi, 

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

Thanks

Awatar
Odrzuć
Najlepsza odpowiedź

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.

Awatar
Odrzuć
Autor Najlepsza odpowiedź

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?



Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
lut 22
9650
1
cze 23
3116
2
gru 16
5416
5
paź 24
5474
0
lip 19
830