I would like to change the color of the label/string and the value of the field in kanban view whenever the priority id field changes its value(VIP, HIGH, LOW, etc.) and i want to assign different color for each value..Thank very much in advance.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- 客戶關係
- e-Commerce
- 會計
- 庫存
- PoS
- Project
- MRP
此問題已被標幟
2
回覆
4910
瀏覽次數
In Odoo 14 you have to set it to a div around the field to color it.
<div t-attf-class="text-danger">
<field name="field_name" attrs="{'invisible': [('other_field', '=', False)]}"/>
div>
And you can make it conditional:
<div t-attf-class="#{record.value > 3 and 'danger' or 'warning'}">
<field name="field_name" />
div>
相關帖文 | 回覆 | 瀏覽次數 | 活動 | |
---|---|---|---|---|
|
12
10月 23
|
36012 | ||
|
0
3月 15
|
4948 | ||
|
4
3月 15
|
5114 | ||
|
2
3月 15
|
6218 | ||
|
4
3月 15
|
5050 |