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

Give color for a field in form view

Avatar
Cancelar
Melhor resposta

<field name="date" style = "color: red" attrs="{'invisible': [('state','!=','cancel')]}"/>

<field name="date" style = "color: green" attrs="{'invisible': [('state','=','cancel')]}"/>

Avatar
Cancelar
Melhor resposta

Hi,

Try this

< label for="your_field"  style="color:red" />

< div >
< field name="your_field" style="color:red" />
< / div >

Likewise you can change color to blue, green etc.

Hope it helps,

Thanks

Avatar
Cancelar
Autor

i want to change colour of field based on condition.how to do that?

Publicações relacionadas Respostas Visualizações Atividade
1
mar. 25
1213
0
mar. 25
826
0
nov. 24
1440
0
jun. 24
1514
1
jun. 24
1990