Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
9670 Vistas

Hi, 

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

Thanks

Avatar
Descartar
Mejor respuesta

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
Descartar
Autor Mejor respuesta

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
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
feb 22
9460
1
jun 23
2944
2
dic 16
5270
5
oct 24
5055
0
jul 19
830