跳至内容
菜单
此问题已终结
2 回复
5247 查看

Give color for a field in form view

形象
丢弃
最佳答案

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

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

形象
丢弃
最佳答案

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

形象
丢弃
编写者

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

相关帖文 回复 查看 活动
1
3月 25
1211
0
3月 25
824
0
11月 24
1437
0
6月 24
1511
1
6月 24
1988