[FIX] base_calendar: regression on unlink_events method.

bzr revid: hmo@tinyerp.com-20110503131117-kam00efh31ql7nwg
This commit is contained in:
Harry (OpenERP)
2011-05-03 18:41:17 +05:30
parent 906ef185c5
commit 6eb80b96ef
+1 -1
View File
@@ -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