From 877fde1280102e1154402b2e00c8347276fba33f Mon Sep 17 00:00:00 2001 From: "Jay (Open ERP)" Date: Mon, 5 Apr 2010 15:44:13 +0530 Subject: [PATCH] [FIX] Unlink : Corrected code for proper query lp bug: https://launchpad.net/bugs/553258 fixed bzr revid: jvo@tinyerp.com-20100405101413-bvcus7jamjcmseex --- bin/osv/orm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/osv/orm.py b/bin/osv/orm.py index 92fb7f9400b..4f7e5fefdae 100644 --- a/bin/osv/orm.py +++ b/bin/osv/orm.py @@ -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: