Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
9759 Представления

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
9642
1
июн. 23
3108
2
дек. 16
5410
5
окт. 24
5447
0
июл. 19
830