Not sure if this helps, but this is how I use datetimes in search view filters:
<filter name="filter_today_timelogs" string="Today" domain="[('log_date','<=',time.strftime('%%Y-%%m-%%d 23:59:59')),('log_date','>=',time.strftime('%%Y-%%m-%%d 00:00:00'))]" />
Main difference I can see between our code samples is mine uses double percent (%) signs in the domain and I use < instead of <
Might be worth a try.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 6/4/13, 11:29 AM|
|Seen: 1391 times|
|Last updated: 7/25/16, 1:17 AM|