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
الردود
4275
أدوات العرض
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>
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيلالمنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
---|---|---|---|---|
Remove "add an item"
تم الحل
|
|
12
أكتوبر 23
|
35459 | |
|
0
مارس 15
|
4282 | ||
|
4
مارس 15
|
4494 | ||
|
2
مارس 15
|
5650 | ||
|
4
مارس 15
|
4655 |