Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
2768 มุมมอง

I would like to set the color green for price in crm kabnab view. Is it possible?

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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 &gt; 0" decoration-danger="expected_revenue &lt;= 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

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
มี.ค. 24
2241
2
มี.ค. 23
3841
2
ส.ค. 22
3063
1
พ.ค. 22
8880
0
มิ.ย. 21
2919