mirror of https://github.com/OCA/social.git
commit
8aa4d64ea8
|
@ -7,7 +7,9 @@ from odoo import models
|
||||||
class MassMailing(models.Model):
|
class MassMailing(models.Model):
|
||||||
_inherit = "mail.mass_mailing"
|
_inherit = "mail.mass_mailing"
|
||||||
|
|
||||||
def send_mail(self):
|
def get_remaining_recipients(self):
|
||||||
"""Sync dynamic lists before sending mailings to them."""
|
"""When evaluating remaining recipients we must resync the list in
|
||||||
|
advance to avoid missing recipients due to domain change or new
|
||||||
|
partners fitting into the conditions"""
|
||||||
self.contact_list_ids.action_sync()
|
self.contact_list_ids.action_sync()
|
||||||
return super().send_mail()
|
return super().get_remaining_recipients()
|
||||||
|
|
Loading…
Reference in New Issue