Use the parent variable for check_recursion

bzr revid: ced-eb95870f779af23f873f54f6237a7145bd535774
This commit is contained in:
ced
2007-08-29 04:47:53 +00:00
parent 85b8870c42
commit 1ba9cca6c1
+1 -1
View File
@@ -1826,7 +1826,7 @@ class orm(object):
parent = self._parent_name
ids_parent = ids[:]
while len(ids_parent):
cr.execute('SELECT distinct "'+self._parent_name+'"'+
cr.execute('SELECT distinct "'+parent+'"'+
' FROM "'+self._table+'" WHERE id in ('+','.join(map(str, ids_parent))+')')
ids_parent = filter(None, map(lambda x: x[0], cr.fetchall()))
for i in ids_parent: