I've created a domain for display last 12 hours orders, but it doesn't work correctly...
<field name="domain">[('create_date','>=', (datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S'))),
('create_date','<=', ((datetime.datetime.now()- datetime.timedelta(hours=12)).strftime('%Y-%m-%d %H:%M:%S'))) ]</field>
I am getting following error: Uncaught Error: TypeError: unsupported operand type(s) for -: 'datetime' and 'timedelta'.