[FIX] Corrected bug of expression calculation in previous commit

bzr revid: jvo@tinyerp.com-20090727072751-kk735cvem4vrx3wg
This commit is contained in:
Jay (Open ERP)
2009-07-27 12:57:51 +05:30
parent c639abd97e
commit fb82bec351
+1 -2
View File
@@ -198,9 +198,8 @@ class expression(object):
self.__exp[i] = (left, 'in', right)
else:
# other field type
# add the time part to datetime field when it's not there:
if field._type == 'datetime' and len(self.__exp[i][2]) == 10:
if field._type == 'datetime' and self.__exp[i][2] and len(self.__exp[i][2]) == 10:
if operator in ('>', '>='):
self.__exp[i][2] += ' 00:00:00'
elif operator in ('<', '<='):