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

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