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
ตอบกลับ
4619
มุมมอง
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>
สนุกกับการพูดคุยนี้ใช่ไหม? เข้าร่วมเลย!
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อRelated Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
---|---|---|---|---|
Remove "add an item"
แก้ไขแล้ว
|
|
12
ต.ค. 23
|
35784 | |
|
0
มี.ค. 15
|
4667 | ||
|
4
มี.ค. 15
|
4886 | ||
|
2
มี.ค. 15
|
6040 | ||
|
4
มี.ค. 15
|
4916 |