I need help, I want to color the record in the CRM kanban view in red if my date field date_operation is less than current_date. I write this xml code but nothing happens.
N.B : I have created a date field current_date which gets date.today()
This is my code but the condition unable to executed
<xpath expr="//div[hasclass('oe_kanban_content')]" position="attributes">
<t t-if="record.date_operation.raw_value < record.current_date.raw_value">
<attribute name="t-attf-style">color: red;attribute>
t>
<t t-else="">
<attribute name="t-attf-style">color: blue;attribute>
t>
xpath>