[FIX] mail : remove blacklist from mail.channel.partner
Blacklist was added to mail.channel.partner in order to avoid sending mail notification for a channel in send mail mode if the partner was blacklisted. But as everythin is done using directly the res partner model, this inheritance is completelly useless. Moreover, since introduction of mail.address.mixin with email_normalization (inherited by blacklist.mixin), the partner_email cannot be normalized as it is a non stored related field. The computation of email_normalized will fail. Task ID : 1911716 Closes PR #28922
This commit is contained in:
@@ -20,11 +20,9 @@ _logger = logging.getLogger(__name__)
|
||||
|
||||
class ChannelPartner(models.Model):
|
||||
_name = 'mail.channel.partner'
|
||||
_inherit = ['mail.blacklist.mixin']
|
||||
_description = 'Listeners of a Channel'
|
||||
_table = 'mail_channel_partner'
|
||||
_rec_name = 'partner_id'
|
||||
_primary_email = 'partner_email'
|
||||
|
||||
partner_id = fields.Many2one('res.partner', string='Recipient', ondelete='cascade')
|
||||
partner_email = fields.Char('Email', related='partner_id.email', readonly=False)
|
||||
|
||||
Reference in New Issue
Block a user