From 6eb80b96efe419482a7a83fb8614d2ed632e0cf6 Mon Sep 17 00:00:00 2001 From: "Harry (OpenERP)" Date: Tue, 3 May 2011 18:41:17 +0530 Subject: [PATCH] [FIX] base_calendar: regression on unlink_events method. bzr revid: hmo@tinyerp.com-20110503131117-kam00efh31ql7nwg --- addons/base_calendar/base_calendar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/base_calendar/base_calendar.py b/addons/base_calendar/base_calendar.py index a0275cada4e..bfcccb3dfe0 100644 --- a/addons/base_calendar/base_calendar.py +++ b/addons/base_calendar/base_calendar.py @@ -982,7 +982,7 @@ class calendar_event(osv.osv): """ if context is None: context = {} - cr.execute('select id from %s where recurrent_uid in %s', (self._table, tuple(ids),)) + cr.execute('select id from '+self._table+' where recurrent_uid in %s', (tuple(ids),)) r_ids = map(lambda x: x[0], cr.fetchall()) self.unlink(cr, uid, r_ids, context=context) return True