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
- Akuntansi
- Inventaris
- PoS
- Project
- MRP
Pertanyaan ini telah diberikan tanda
<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?
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
DaftarPost Terkait | Replies | Tampilan | Aktivitas | |
---|---|---|---|---|
Enable Counters in odoo what is the use of it
Diselesaikan
|
|
1
Mar 25
|
771 | |
|
0
Mar 25
|
525 | ||
|
0
Nov 24
|
1059 | ||
|
0
Jun 24
|
1170 | ||
|
1
Jun 24
|
1623 |