Merge PR #646 into 12.0

Signed-off-by pedrobaeza
pull/650/head
OCA-git-bot 2020-12-11 16:11:10 +00:00
commit 11e558e673
1 changed files with 4 additions and 2 deletions

View File

@ -23,8 +23,10 @@ class MailMassMailingContact(models.Model):
('id', '!=', contact.id)
])
if contact.list_ids & other_contact.mapped('list_ids'):
raise ValidationError(_("Partner already exists in one of "
"these mailing lists"))
raise ValidationError(
_("Partner already exists in one of these "
"mailing lists") + ": %s" % contact.partner_id.display_name
)
@api.onchange('partner_id')
def _onchange_partner_mass_mailing_partner(self):