[FIX] Unlink : Corrected code for proper query

lp bug: https://launchpad.net/bugs/553258 fixed

bzr revid: jvo@tinyerp.com-20100405101413-bvcus7jamjcmseex
This commit is contained in:
Jay (Open ERP)
2010-04-05 15:44:13 +05:30
parent ed2c762bc7
commit 877fde1280
+1 -1
View File
@@ -2785,7 +2785,7 @@ class orm(orm_template):
self.check_access_rule(cr, uid, ids, 'unlink', context=context)
for sub_ids in cr.split_for_in_conditions(ids):
cr.execute('delete from ' + self._table + ' ' \
'where id in %s', sub_ids)
'where id in %s', (sub_ids,))
for order, object, store_ids, fields in result_store:
if object != self._name: