Reviewers: ,
Please review this at http://codereview.tryton.org/449001/
Affected files:
M calendar_.py
Index: calendar_.py
===================================================================
--- a/calendar_.py
+++ b/calendar_.py
@@ -762,7 +762,7 @@
attendees = self.browse(ids)
for attendee in attendees:
owner = attendee.event.calendar.owner
- if not owner.calendar_email_notification_partstat:
+ if not owner or not owner.calendar_email_notification_partstat:
continue
organizer = self.organiser_to_notify(attendee)
if not organizer:
@@ -807,7 +807,7 @@
if attendee.status == 'declined':
continue
- if not owner.calendar_email_notification_partstat:
+ if not owner or not owner.calendar_email_notification_partstat:
continue
organizer = self.organiser_to_notify(attendee)
if not organizer:
@@ -848,7 +848,7 @@
if (not attendee.status) or attendee.status in
('', 'needs-action'):
return res_id
- if not owner.calendar_email_notification_partstat:
+ if not owner or not owner.calendar_email_notification_partstat:
return res_id
organizer = self.organiser_to_notify(attendee)
if not organizer:
--
[email protected] mailing list