diff --git a/addons/calendar/models/calendar.py b/addons/calendar/models/calendar.py index 19a95cc0b5bc9b484e5ba82d29ba661423bb0d90..f0dd9209f6f61f2920c53ad595ca21f8d3e07b3a 100644 --- a/addons/calendar/models/calendar.py +++ b/addons/calendar/models/calendar.py @@ -210,7 +210,9 @@ class Attendee(models.Model): 'mimetype': 'text/calendar', 'datas': base64.b64encode(ics_file)}) ] - mail_ids.append(invitation_template.send_mail(attendee.id, email_values=email_values, notif_layout='mail.mail_notification_light')) + mail_ids.append(invitation_template.with_context(no_document=True).send_mail(attendee.id, email_values=email_values, notif_layout='mail.mail_notification_light')) + else: + mail_ids.append(invitation_template.send_mail(attendee.id, email_values=email_values, notif_layout='mail.mail_notification_light')) if force_send and mail_ids: res = self.env['mail.mail'].browse(mail_ids).send()