Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
2 Respostas
9728 Visualizações

Hi, 

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

Thanks

Avatar
Cancelar
Melhor resposta

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
Cancelar
Autor Melhor resposta

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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
1
fev. 22
9564
1
jun. 23
3060
2
dez. 16
5364
5
out. 24
5265
0
jul. 19
830