[IMP] base_calendar: change the code of unlink of attendee

bzr revid: kjo@tinyerp.com-20111227104401-3zfravs7purahc2z
This commit is contained in:
Kuldeep Joshi (OpenERP) 2011-12-27 16:14:01 +05:30
parent 2a954a8c90
commit 0cfde7d879
1 changed files with 1 additions and 2 deletions

View File

@ -1501,8 +1501,7 @@ rule or repeating pattern of time to exclude from the recurring rule."),
ids.remove(event_id)
for event in self.browse(cr, uid, ids, context=context):
if event.attendee_ids:
attendee_ids = [x.id for x in event.attendee_ids]
calendar_obj.unlink(cr, uid, attendee_ids, context=context)
calendar_obj.unlink(cr, uid, [x.id for x in event.attendee_ids], context=context)
res = super(calendar_event, self).unlink(cr, uid, ids, context=context)
self.pool.get('res.alarm').do_alarm_unlink(cr, uid, ids, self._name)