How to save a filter with today value from context
I have a filter name today with the next value:
<filter string="Today" domain="[('date','>=',((context_today())).strftime('%%Y-%%m-%%d 00:00:00')), ('date', '<=',((context_today())).strftime('%%Y-%%m-%%d 23:59:59'))]"/>
The date field is datetime and the filter work good. The filter return only values from today.
If i save the filter as default filter, openerp save the actual date and the filter not work tomorrow or other day because the date is saved instead of context_today().
Any method to save a filter with the context_today instead of his value?
Thanks. Best regards.