Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2740 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ

@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

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 3 24
2196
2
thg 3 23
3780
2
thg 8 22
3036
1
thg 5 22
8825
0
thg 6 21
2894