Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
2746 Vizualizări

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

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează

@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

Related Posts Răspunsuri Vizualizări Activitate
1
mar. 24
2197
2
mar. 23
3783
2
aug. 22
3036
1
mai 22
8831
0
iun. 21
2895