Merge PR #522 into 12.0

Signed-off-by pedrobaeza
pull/524/head
OCA-git-bot 2020-03-13 16:17:36 +00:00
commit d46633c932
1 changed files with 4 additions and 2 deletions

View File

@ -18,5 +18,7 @@ class MailMassMailingContact(models.Model):
contact_email = contact.email.strip().lower()
other_emails = [e.strip().lower() for e in others.mapped('email')]
if contact_email in other_emails:
raise ValidationError(_("Cannot have the same email more "
"than once in the same list"))
raise ValidationError(_(
"Cannot have the same email (%s) more"
"than once in the same list." % contact_email
))