Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
9770 มุมมอง

Hi, 

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

Thanks

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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.

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

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?



อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.พ. 22
9646
1
มิ.ย. 23
3115
2
ธ.ค. 16
5411
Line background color in list view แก้ไขแล้ว
5
ต.ค. 24
5457
0
ก.ค. 19
830