[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:
+1
-1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user