Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
4924 Weergaven

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.

Avatar
Annuleer
Beste antwoord

See if this widget can help you: 

​https://apps.odoo.com/apps/modules/10.0/web_widget_colorpicker/




Avatar
Annuleer
Beste antwoord

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>
Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
12
okt. 23
36019
0
mrt. 15
4953
4
mrt. 15
5121
2
mrt. 15
6221
4
mrt. 15
5052