Search code examples
viewodoo-12

Odoo 12 : Change field color (font color) in form view according to condition


I have a field named "status" in my form view, I want to change the color of it to red when the field named "estimated_income" < 50000 else to green. How can i do that in Odoo 12 in from view? Thanks.


Solution

  • using inside decoration-danger="estimated_income<50000"