Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
2 Antworten
9792 Ansichten

Hi, 

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

Thanks

Avatar
Verwerfen
Beste Antwort

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
Verwerfen
Autor Beste Antwort

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
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
1
Feb. 22
9660
1
Juni 23
3119
2
Dez. 16
5423
5
Okt. 24
5498
0
Juli 19
830