跳至内容
菜单
此问题已终结
1 回复
2695 查看

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

相关帖文 回复 查看 活动
1
3月 24
2174
2
3月 23
3749
2
8月 22
3017
1
5月 22
8800
0
6月 21
2862