I would like to set the color green for price in crm kabnab view. Is it possible?
Pertanyaan ini telah diberikan tanda
Hello Ewdy,
Please apply this code.
.o_kanban_view .o_kanban_record .o_kanban_record_subtitle
{
color:green;
}
Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari
@Ewdy
Another way of doint this dynamically is to add decoration attribute which can take a condition and changes color based on it.
Please see below example of how to add it to a field in xml
<field name="expected_revenue" widget="monetary"
options="{'currency_field': 'company_currency'}"
decoration-success="expected_revenue > 0" decoration-danger="expected_revenue <= 0"/>
To find more about how to work with decoration, Please check the link below:
https://www.odoo.com/documentation/master/developer/reference/backend/views.html?highlight=decoration
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
Daftar| Post Terkait | Replies | Tampilan | Aktivitas | |
|---|---|---|---|---|
|
|
1
Mar 24
|
3933 | ||
|
How to make existing kanban not draggable?
Diselesaikan
|
|
2
Mar 23
|
5714 | |
|
|
2
Agu 22
|
4468 | ||
|
How to change the Odoo brand purple color in Odoo 14
Diselesaikan
|
|
1
Mei 22
|
11160 | |
|
|
0
Jun 21
|
4120 |