From bdda7b70d3af106739d5ef7a2e5119de0c552880 Mon Sep 17 00:00:00 2001 From: "Quentin (OpenERP)" Date: Mon, 4 Nov 2013 14:43:14 +0100 Subject: [PATCH] [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 --- openerp/osv/expression.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openerp/osv/expression.py b/openerp/osv/expression.py index d471f7efb4f..23c22f10b8b 100644 --- a/openerp/osv/expression.py +++ b/openerp/osv/expression.py @@ -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'