[IMP] crm, mass_mailing_crm : remove useless override of message_get_default_recipients
As CRM inherits directly of blacklist mixin, no need to re-override the message_get_default_recipients in the bridge module. This code was even not in the good place. Anyway, email_normalized can be directly used in the message_get_default_recipients override in crm module itself. Task ID : 1915317 Related Task ID : 1896677 Closes PR #29261
This commit is contained in:
@@ -1161,7 +1161,7 @@ class Lead(models.Model):
|
||||
def message_get_default_recipients(self):
|
||||
return {
|
||||
r.id : {'partner_ids': [],
|
||||
'email_to': r.email_from,
|
||||
'email_to': r.email_normalized,
|
||||
'email_cc': False}
|
||||
for r in self.sudo()
|
||||
}
|
||||
|
||||
@@ -2,4 +2,3 @@
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from . import mass_mailing
|
||||
from . import crm_lead
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from odoo import api, models
|
||||
|
||||
|
||||
class Lead(models.Model):
|
||||
_name = "crm.lead"
|
||||
_inherit = ['crm.lead']
|
||||
|
||||
@api.multi
|
||||
def message_get_default_recipients(self):
|
||||
return {
|
||||
r.id : {'partner_ids': [],
|
||||
'email_to': r.email_normalized,
|
||||
'email_cc': False}
|
||||
for r in self.sudo()
|
||||
}
|
||||
Reference in New Issue
Block a user