[FIX] expression.py: when searching on a datetime field with an argument formated as a date, conversion should happen _also_ for the '=' operator. This omission was causing an infinite loop beacuse we were pushing the exact same leaf on the stack without any modification

bzr revid: qdp-launchpad@openerp.com-20131104134314-2mv5wkt13ih9c1yg
This commit is contained in:
Quentin (OpenERP) 2013-11-04 14:43:14 +01:00
parent f270975d98
commit bdda7b70d3
1 changed files with 1 additions and 1 deletions

View File

@ -1012,7 +1012,7 @@ class expression(object):
else:
if field._type == 'datetime' and right and len(right) == 10:
if operator in ('>', '>='):
if operator in ('>', '>=', '='):
right += ' 00:00:00'
elif operator in ('<', '<='):
right += ' 23:59:59'