mirror of https://github.com/OCA/social.git
commit
8aa4d64ea8
|
@ -7,7 +7,9 @@ from odoo import models
|
|||
class MassMailing(models.Model):
|
||||
_inherit = "mail.mass_mailing"
|
||||
|
||||
def send_mail(self):
|
||||
"""Sync dynamic lists before sending mailings to them."""
|
||||
def get_remaining_recipients(self):
|
||||
"""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()
|
||||
return super().send_mail()
|
||||
return super().get_remaining_recipients()
|
||||
|
|
Loading…
Reference in New Issue