Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
2701 Weergaven

I would like to set the color green for price in crm kabnab view. Is it possible?

Avatar
Annuleer
Beste antwoord

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

Avatar
Annuleer

@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

Gerelateerde posts Antwoorden Weergaven Activiteit
1
mrt. 24
2175
2
mrt. 23
3752
2
aug. 22
3017
1
mei 22
8806
0
jun. 21
2867