Hello
How can I color a date field in a form view depending on the current date?
for instance red if < today and black otherwise
Thanks in advance,
Bruno
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hello
How can I color a date field in a form view depending on the current date?
for instance red if < today and black otherwise
Thanks in advance,
Bruno
I have found this solution which seems to work:
<field name="date_entry" attrs="{'invisible': [('parent_id', '=', False)]}" decoration-danger="date_entry < current_date"/>
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up