[FIX] expression: correct the generated sql in case of _inherits

bzr revid: christophe@tinyerp.com-20090527110336-t8t5ombxj6p3slqw
This commit is contained in:
Christophe Simonis
2009-05-27 13:03:36 +02:00
parent 3837623fa2
commit b18b81344f
+1 -1
View File
@@ -251,7 +251,7 @@ class expression(object):
query = '(%s.%s %s (%s))' % (table._table, left, operator, instr)
if check_nulls:
query = '(%s OR %s IS NULL)' % (query, left)
query = '(%s OR %s.%s IS NULL)' % (query, table._table, left)
else:
params = []