[FIX] event: do not force_send emails by default, to keep transaction ACID
This commit is contained in:
@@ -245,7 +245,7 @@ class event_event(models.Model):
|
||||
return res
|
||||
|
||||
@api.one
|
||||
def mail_attendees(self, template_id, force_send=True, filter_func=lambda self: True):
|
||||
def mail_attendees(self, template_id, force_send=False, filter_func=lambda self: True):
|
||||
for attendee in self.registration_ids.filtered(filter_func):
|
||||
self.env['mail.template'].browse(template_id).send_mail(attendee.id, force_send=force_send)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user