this code is working but the problem is the condition(attrs).
<label for="date_due" string="Due Date"/>
<span>
<div attrs="{'invisible': [('date_due','>', 'date_today')]}">
<field name="date_due" style="color:black"/>
</div>
<div attrs="{'invisible': [('date_due','<', 'date_today')]}" >
<field name="date_due" style="color:red"/>
</div>
</span>
This code works only on the second condition, is there any way to do this problem?
and also give us idea about the current date in xml code.