Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
9727 Vizualizări

Hi, 

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

Thanks

Imagine profil
Abandonează
Cel mai bun răspuns

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.

Imagine profil
Abandonează
Autor Cel mai bun răspuns

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?



Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
feb. 22
9564
1
iun. 23
3060
2
dec. 16
5364
5
oct. 24
5265
0
iul. 19
830