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
回覆
5268
瀏覽次數
<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
|
1220 | ||
|
0
3月 25
|
831 | ||
|
0
11月 24
|
1444 | ||
|
0
6月 24
|
1520 | ||
|
1
6月 24
|
1996 |