From 254d5343ab98a4011bbb53ad6ab029821dbaecf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Mart=C3=ADnez?= Date: Fri, 11 Dec 2020 09:45:36 +0100 Subject: [PATCH] =?UTF-8?q?[IMP]=20mass=5Fmailing=5Fpartner:=20Add=20partn?= =?UTF-8?q?er=5Fname=20in=20error=20constrain=20message=C3=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mass_mailing_partner/models/mailing_contact.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mass_mailing_partner/models/mailing_contact.py b/mass_mailing_partner/models/mailing_contact.py index 1312dfb..e92a916 100644 --- a/mass_mailing_partner/models/mailing_contact.py +++ b/mass_mailing_partner/models/mailing_contact.py @@ -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")