[FIX] recursive child_of on one2many and many2many

bzr revid: fp@tinyerp.com-20091019181633-8szl9k4nlp9mmr1p
This commit is contained in:
Fabien Pinckaers
2009-10-19 20:16:33 +02:00
parent df9f5fb23c
commit 3a3ea98257
+2 -2
View File
@@ -52,8 +52,8 @@ class expression(object):
' FROM "%s"' \
' WHERE "%s" in (%s)' % (s, f, w, ','.join(['%s']*len(subids))),
subids)
res.extend([r[0] for r in cr.fetchall()])
return res
res += [r[0] for r in cr.fetchall() if r[0]]
return res + (res and self.__execute_recursive_in(cr, s, f, w, res) or [])
def __init__(self, exp):