Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
9726 Tampilan

Hi, 

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

Thanks

Avatar
Buang
Jawaban Terbai

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
Buang
Penulis Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
1
Feb 22
9564
1
Jun 23
3060
2
Des 16
5364
5
Okt 24
5265
0
Jul 19
830