I try to create a domain filter what should look like this:
(Followup date < today) AND (customer = TRUE OR user_id = user.id)
I did it like following:
[('follow_up_date', '<=', datetime.datetime.now().strftime('%Y-%m-%d 00:00:00')),['|', ('customer', '=', 'False'),('user_id', '=', 'user.id')]]
The first part (the time filter) works great if it stands alone, but when I connect it with the second part like I did in the example above it gives me this error:
File "/usr/lib/python2.7/dist-packages/openerp/osv/expression.py", line 308, in distribute_not
elif token in DOMAIN_OPERATORS_NEGATION:
TypeError: unhashable type: 'list'
What's wrong, how can I express what I want as a correct domain filter?
Thank you for your help in advance :)