projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c639abd
)
[FIX] Corrected bug of expression calculation in previous commit
author
Jay (Open ERP)
<jvo@tinyerp.com>
Mon, 27 Jul 2009 07:27:51 +0000
(12:57 +0530)
committer
Jay (Open ERP)
<jvo@tinyerp.com>
Mon, 27 Jul 2009 07:27:51 +0000
(12:57 +0530)
bzr revid: jvo@tinyerp.com-
20090727072751
-kk735cvem4vrx3wg
bin/osv/expression.py
patch
|
blob
|
history
diff --git
a/bin/osv/expression.py
b/bin/osv/expression.py
index
5c97cde
..
feac469
100644
(file)
--- a/
bin/osv/expression.py
+++ b/
bin/osv/expression.py
@@
-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 ('<', '<='):