Give color for a field in form view
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- 客户关系管理
- e-Commerce
- 会计
- 库存
- PoS
- Project
- MRP
此问题已终结
2
回复
5247
查看
<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 >
< 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 |