How to set filter on a field to get data within 24 hours?
For this you can also use schedule action. Within scheduler action you can define you method with appropriate setting.
Hi I want to set  filter on field date where the value of date field should within 24 hours.
<filter name="date" string="Scheduled Date" domain="[('date', '&gt;=', datetime.datetime.now().strftime('%Y-%m-%d 00:00:00')),('date', '&lt;=', datetime.datetime.now().strftime('%Y-%m-%d 23:23:59'))]"/>
I tried this one, but this retrieves only the data where the date field contains today's date
Thanks in advance