You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
414 B
14 lines
414 B
# -*- coding: utf-8 -*-
|
|
# Copyright 2017 Tecnativa - Jairo Llopis
|
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
|
|
|
from odoo import models
|
|
|
|
|
|
class MassMailing(models.Model):
|
|
_inherit = "mail.mass_mailing"
|
|
|
|
def send_mail(self):
|
|
"""Sync dynamic lists before sending mailings to them."""
|
|
self.contact_list_ids.action_sync()
|
|
return super(MassMailing, self).send_mail()
|