İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
9653 Görünümler

Hi, 

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

Thanks

Avatar
Vazgeç
En İyi Yanıt

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
Vazgeç
Üretici En İyi Yanıt

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
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Şub 22
9445
1
Haz 23
2934
2
Ara 16
5262
5
Eki 24
5012
0
Tem 19
830