]
def _check_recursion(self, cr, uid, ids):
- level = 500
+ level = 100
while len(ids):
- cr.execute('select distinct bom_id from mrp_bom where id in ('+','.join(map(str, ids))+')')
+ cr.execute('select distinct bom_id from mrp_bom where id =ANY(%s)',(ids,))
ids = filter(None, map(lambda x:x[0], cr.fetchall()))
if not level:
return False