summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorMartin Geubelle <mge@odoo.com>2016-10-18 16:25:00 +0200
committerMartin Geubelle <mge@odoo.com>2016-10-18 16:25:05 +0200
commit6348b567553b0ea5a3ea91cf7c0ed4ba66a9f7bf (patch)
tree8b90fbf71a57de1c4b4559b7e9096c4014c19e8d /addons
parente8e4145c998c335d00a48a0b2a7a9e961b3f3983 (diff)
[FIX] calendar: prevent traceback if no real_ids
After 488e9f2 there is traceback if the list real_ids is empty. opw-690761
Diffstat (limited to 'addons')
-rw-r--r--addons/calendar/calendar.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/calendar/calendar.py b/addons/calendar/calendar.py
index 430aaa48244..c83a0e49ee5 100644
--- a/addons/calendar/calendar.py
+++ b/addons/calendar/calendar.py
@@ -1624,7 +1624,7 @@ class calendar_event(osv.Model):
event = self.browse(cr, uid, event_id, context=context)
if len(event.alarm_ids) > 0 or values.get('alarm_ids'):
partners_to_notify = set([p.id for p in event.partner_ids])
- event_attendees_changes = attendees_create and attendees_create[real_ids[0]]
+ event_attendees_changes = attendees_create and real_ids and attendees_create[real_ids[0]]
if event_attendees_changes:
partners_to_notify.update(event_attendees_changes['removed_partner_ids'])
self.pool['calendar.alarm_manager'].notify_next_alarm(cr, uid, partners_to_notify)