Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
10040 Переглядів

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
10008
1
черв. 23
3389
2
груд. 16
5700
5
жовт. 24
6375
0
лип. 19
830