From 823958b69ba333a473bd79cd18a842fe41da4911 Mon Sep 17 00:00:00 2001 From: David Beguin Date: Fri, 24 Aug 2018 17:07:14 +0200 Subject: [PATCH] [FIX] mass_mailing : remove duplicate from blacklist form view As blacklist email is unique and email is the only attribute, it's a non sens to allow to duplicate a record. + To avoid import error on blacklist if import a duplicated address, the create return the existing record instead of creating a new one (which is not possible due to unique email constraint). The duplicate was only editing the existing record. --- addons/mail/views/mail_blacklist_views.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mail/views/mail_blacklist_views.xml b/addons/mail/views/mail_blacklist_views.xml index 725af63ab3f..6e0664c54ea 100644 --- a/addons/mail/views/mail_blacklist_views.xml +++ b/addons/mail/views/mail_blacklist_views.xml @@ -15,7 +15,7 @@ mail.blacklist.view.form mail.blacklist -
+