From ed86434a19dcbe999accd4ce3f63a72b8a04d310 Mon Sep 17 00:00:00 2001
From: Geoffroy Larue
Date: Wed, 7 Nov 2018 15:50:46 +0000
Subject: [PATCH] [IMP] mass_mailing: improve onboarding
Purpose : this commit improve various elements of the mass mailing interface :
- make recipients field in mass mailing form required and add "mass mailing contact" in selection
- new "Archive" button and color picker in dropdown menus of mailing lists and mailings
kanban views.
- various little improvements in labels
closes odoo/odoo#28497
---
addons/mail/views/mail_blacklist_views.xml | 2 +-
addons/mass_mailing/models/mass_mailing.py | 1 +
.../mass_mailing/views/mass_mailing_views.xml | 23 ++++++++++++++-----
.../wizard/test_mailing_views.xml | 2 +-
4 files changed, 20 insertions(+), 8 deletions(-)
diff --git a/addons/mail/views/mail_blacklist_views.xml b/addons/mail/views/mail_blacklist_views.xml
index dca1dfec55c..3be2e0524ed 100644
--- a/addons/mail/views/mail_blacklist_views.xml
+++ b/addons/mail/views/mail_blacklist_views.xml
@@ -60,7 +60,7 @@
Add an email address in the blacklist
- Email addresses that are blacklisted means that the recipient won't receive any mass mailing anymore.
+ Email addresses that are blacklisted means that the recipient won't receive mass mailing anymore.
diff --git a/addons/mass_mailing/models/mass_mailing.py b/addons/mass_mailing/models/mass_mailing.py
index 643c03db195..48d5c6704d9 100644
--- a/addons/mass_mailing/models/mass_mailing.py
+++ b/addons/mass_mailing/models/mass_mailing.py
@@ -23,6 +23,7 @@ MASS_MAILING_BUSINESS_MODELS = [
'event.track',
'sale.order',
'mail.mass_mailing.list',
+ 'mail.mass_mailing.contact'
]
EMAIL_PATTERN = '([^ ,;<@]+@[^> ,;]+)'
diff --git a/addons/mass_mailing/views/mass_mailing_views.xml b/addons/mass_mailing/views/mass_mailing_views.xml
index 97956b7ee85..388f5078396 100644
--- a/addons/mass_mailing/views/mass_mailing_views.xml
+++ b/addons/mass_mailing/views/mass_mailing_views.xml
@@ -372,6 +372,7 @@
+
@@ -391,6 +392,11 @@
@@ -422,7 +428,7 @@
Create a new mailing list
No need of importing your mailing lists, you can easily
- send emails to any contact saved in other Odoo apps.
+ send emails
to any contact saved in other Odoo apps.
@@ -591,7 +597,7 @@
@@ -758,7 +769,7 @@
Create a new mailing
No need of importing your mailing lists, you can easily
- send emails to any contact saved in other Odoo apps.
+ send emails
to any contact saved in other Odoo apps.
@@ -780,7 +791,7 @@
Create a new mailing
No need of importing your mailing lists, you can easily
- send emails to any contact saved in other Odoo apps.
+ send emails
to any contact saved in other Odoo apps.
@@ -802,7 +813,7 @@
Create a new mailing
No need of importing your mailing lists, you can easily
- send emails to any contact saved in other Odoo apps.
+ send emails
to any contact saved in other Odoo apps.
@@ -825,7 +836,7 @@
Create a new mailing
No need of importing your mailing lists, you can easily
- send emails to any contact saved in other Odoo apps.
+ send emails
to any contact saved in other Odoo apps.
diff --git a/addons/mass_mailing/wizard/test_mailing_views.xml b/addons/mass_mailing/wizard/test_mailing_views.xml
index b8d9640a88c..84d0025d02b 100644
--- a/addons/mass_mailing/wizard/test_mailing_views.xml
+++ b/addons/mass_mailing/wizard/test_mailing_views.xml
@@ -7,7 +7,7 @@