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
- Accounting
- Inventory
- PoS
- Project
- MRP
This question has been flagged
<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" />
< 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?
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
Mar 25
|
689 | ||
|
0
Mar 25
|
453 | ||
|
0
Nov 24
|
1004 | ||
|
0
Jun 24
|
1121 | ||
|
1
Jun 24
|
1582 |