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:
- CRM
- e-Commerce
- 회계
- 재고 관리
- PoS
- Project
- MRP
신고된 질문입니다
2
답글
5261
화면
<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
|
1214 | ||
|
0
3월 25
|
826 | ||
|
0
11월 24
|
1441 | ||
|
0
6월 24
|
1517 | ||
|
1
6월 24
|
1990 |