[IMP] mass_mailing_partner: Add partner_name in error constrain messageç

This commit is contained in:
Víctor Martínez 2020-12-11 09:45:36 +01:00 committed by emagdalenaC2i
parent fec2a394ad
commit 254d5343ab

View File

@ -29,7 +29,8 @@ class MailingContact(models.Model):
)
if contact.list_ids & other_contact.mapped("list_ids"):
raise ValidationError(
_("Partner already exists in one of " "these mailing lists")
_("Partner already exists in one of these mailing lists")
+ ": %s" % contact.partner_id.display_name
)
@api.onchange("partner_id")