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.

18 lines
595 B

  1. # -*- coding: utf-8 -*-
  2. # © 2017 Phuc.nt - <phuc.nt@komit-consulting.com>
  3. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  4. from odoo import models, api
  5. class MailThread(models.AbstractModel):
  6. _inherit = 'mail.thread'
  7. @api.multi
  8. def message_get_recipient_values(self, notif_message=None,
  9. recipient_ids=None):
  10. res = super(MailThread, self).message_get_recipient_values(
  11. notif_message=notif_message, recipient_ids=recipient_ids)
  12. res['recipient_ids'] = [(6, 0, recipient_ids)]
  13. return res