Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
9765 Weergaven

Hi, 

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

Thanks

Avatar
Annuleer
Beste antwoord

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
Annuleer
Auteur Beste antwoord

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
feb. 22
9642
1
jun. 23
3109
2
dec. 16
5410
5
okt. 24
5453
0
jul. 19
830