[FIX] event: do not force_send emails by default, to keep transaction ACID

This commit is contained in:
Olivier Dony
2015-05-28 19:12:03 +02:00
parent 58f8ffb6a5
commit cfe58e428c
+1 -1
View File
@@ -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)