[FIX] base_calendar: regression on unlink_events method.
bzr revid: hmo@tinyerp.com-20110503131117-kam00efh31ql7nwg
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user