콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
9793 화면

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?



아바타
취소
관련 게시물 답글 화면 활동
1
2월 22
9660
1
6월 23
3119
2
12월 16
5423
5
10월 24
5499
0
7월 19
830