Browse Source

[REF] base_address_category: don't subsitute args in query

pull/2/head
Alexandre Fayolle 12 years ago
parent
commit
e6dc1c0abc
  1. 4
      base_address_category/base_address.py

4
base_address_category/base_address.py

@ -44,10 +44,10 @@ class ResPartnerAdressCategory(orm.Model):
def _check_recursion(self, cr, uid, ids):
level = 100
while len(ids):
while ids:
cr.execute('select distinct parent_id '
'from res_partner_address_category '
'where id in (%s)' % ','.join(unicode(id) for id in ids))
'where id in %s', ids)
ids = [parent_id for (parent_id,) in cr.fetchall() if parent_id]
if not level:
return False

Loading…
Cancel
Save