From 2c561aae521dc1fbc14eed536c7e89df408693bf Mon Sep 17 00:00:00 2001
From: "Pedro M. Baeza"
Date: Tue, 23 Jan 2018 13:36:17 +0100
Subject: [PATCH 1/8] [ADD] mass_mailing_resend (#210)
* [ADD] mass_mailing_resend
Resend mass mailings
====================
A frequent need for users of mass mailings is to resend one mailing that has
already been sent in the past to new recipients that haven't received yet that
mail. But the problem is to know which are the applicable ones.
Odoo already includes a method in its mass mailing logic that avoids to resend
the same mail 2 times for one mass mailing, and for v9, there was a trick that
allows to modify the state of a mass mailing from kanban view, covering the
need.
But now on v10 both status bar in form view and dragging between states in
kanban are not allowed.
This module introduces a button to restart a mass mailing to draft state,
allowing you to reevaluate the sending domain or list for performing again
the mailing.
Usage
=====
* Go to *Mass mailing > Mailings > Mass Mailings*.
* Click on one record that is done or create a new one and send it.
* You will see a button called "Resend".
* If you click on it, mass mailing will be set to Draft again.
Known issues / Roadmap
======================
* Add an indicator / filter for knowing resent mailings.
* Include information on the number of new recipients to be sent on the
resending (through `get_remaining_recipients` method).
---
mass_mailing_resend/README.rst | 75 ++++++++++++++++
mass_mailing_resend/__init__.py | 4 +
mass_mailing_resend/__manifest__.py | 21 +++++
mass_mailing_resend/i18n/es.po | 38 ++++++++
mass_mailing_resend/models/__init__.py | 4 +
mass_mailing_resend/models/mass_mailing.py | 19 ++++
.../static/description/icon.png | Bin 0 -> 5936 bytes
.../static/description/icon.svg | 84 ++++++++++++++++++
mass_mailing_resend/tests/__init__.py | 4 +
.../tests/test_mass_mailing_resend.py | 36 ++++++++
.../views/mass_mailing_views.xml | 28 ++++++
11 files changed, 313 insertions(+)
create mode 100644 mass_mailing_resend/README.rst
create mode 100644 mass_mailing_resend/__init__.py
create mode 100644 mass_mailing_resend/__manifest__.py
create mode 100644 mass_mailing_resend/i18n/es.po
create mode 100644 mass_mailing_resend/models/__init__.py
create mode 100644 mass_mailing_resend/models/mass_mailing.py
create mode 100644 mass_mailing_resend/static/description/icon.png
create mode 100644 mass_mailing_resend/static/description/icon.svg
create mode 100644 mass_mailing_resend/tests/__init__.py
create mode 100644 mass_mailing_resend/tests/test_mass_mailing_resend.py
create mode 100644 mass_mailing_resend/views/mass_mailing_views.xml
diff --git a/mass_mailing_resend/README.rst b/mass_mailing_resend/README.rst
new file mode 100644
index 0000000000..84deb127bc
--- /dev/null
+++ b/mass_mailing_resend/README.rst
@@ -0,0 +1,75 @@
+.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
+ :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
+ :alt: License: AGPL-3
+
+====================
+Resend mass mailings
+====================
+
+A frequent need for users of mass mailings is to resend one mailing that has
+already been sent in the past to new recipients that haven't received yet that
+mail. But the problem is to know which are the applicable ones.
+
+Odoo already includes a method in its mass mailing logic that avoids to resend
+the same mail 2 times for one mass mailing, and for v9, there was a trick that
+allows to modify the state of a mass mailing from kanban view, covering the
+need.
+
+But now on v10 both status bar in form view and dragging between states in
+kanban are not allowed.
+
+This module introduces a button to restart a mass mailing to draft state,
+allowing you to reevaluate the sending domain or list for performing again
+the mailing.
+
+Usage
+=====
+
+* Go to *Mass mailing > Mailings > Mass Mailings*.
+* Click on one record that is done or create a new one and send it.
+* You will see a button called "Resend".
+* If you click on it, mass mailing will be set to Draft again.
+
+.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
+ :alt: Try me on Runbot
+ :target: https://runbot.odoo-community.org/runbot/205/10.0
+
+Bug Tracker
+===========
+
+Bugs are tracked on `GitHub Issues
+`_. In case of trouble, please
+check there if your issue has already been reported. If you spotted it first,
+help us smashing it by providing a detailed and welcomed feedback.
+
+Known issues / Roadmap
+======================
+
+* Add an indicator / filter for knowing resent mailings.
+* Include information on the number of new recipients to be sent on the
+ resending (through `get_remaining_recipients` method).
+
+
+Credits
+=======
+
+Contributors
+------------
+
+* Tecnativa (https://www.tecnativa.com):
+ * Pedro M. Baeza
+
+Maintainer
+----------
+
+.. image:: https://odoo-community.org/logo.png
+ :alt: Odoo Community Association
+ :target: https://odoo-community.org
+
+This module is maintained by the OCA.
+
+OCA, or the Odoo Community Association, is a nonprofit organization whose
+mission is to support the collaborative development of Odoo features and
+promote its widespread use.
+
+To contribute to this module, please visit https://odoo-community.org.
diff --git a/mass_mailing_resend/__init__.py b/mass_mailing_resend/__init__.py
new file mode 100644
index 0000000000..a77a6fcbc5
--- /dev/null
+++ b/mass_mailing_resend/__init__.py
@@ -0,0 +1,4 @@
+# -*- coding: utf-8 -*-
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
+
+from . import models
diff --git a/mass_mailing_resend/__manifest__.py b/mass_mailing_resend/__manifest__.py
new file mode 100644
index 0000000000..9e7260b6b7
--- /dev/null
+++ b/mass_mailing_resend/__manifest__.py
@@ -0,0 +1,21 @@
+# -*- coding: utf-8 -*-
+# Copyright 2017 Tecnativa - Pedro M. Baeza
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
+
+{
+ "name": "Resend mass mailings",
+ "version": "10.0.1.0.0",
+ "category": "Marketing",
+ "website": "https://github.com/OCA/social",
+ "author": "Tecnativa, "
+ "Odoo Community Association (OCA)",
+ "license": "AGPL-3",
+ "application": False,
+ "installable": True,
+ "depends": [
+ "mass_mailing",
+ ],
+ "data": [
+ "views/mass_mailing_views.xml",
+ ],
+}
diff --git a/mass_mailing_resend/i18n/es.po b/mass_mailing_resend/i18n/es.po
new file mode 100644
index 0000000000..cdb4db747b
--- /dev/null
+++ b/mass_mailing_resend/i18n/es.po
@@ -0,0 +1,38 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * mass_mailing_resend
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Odoo Server 10.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2017-11-22 10:42+0000\n"
+"PO-Revision-Date: 2017-11-22 10:42+0000\n"
+"Last-Translator: <>\n"
+"Language-Team: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Plural-Forms: \n"
+
+#. module: mass_mailing_resend
+#: model:ir.ui.view,arch_db:mass_mailing_resend.view_mail_mass_mailing_form
+msgid " New sending will be done only to not sent/new recipients. If you want to resend again the mass mailing to already sent recipients, click on Emails Sent smart-button for removing the existing record(s)."
+msgstr " El nuevo envío se realizará solo a los destinatarios no enviados/nuevos. Si quiere reenviar otra vez el correo masivo a destinatarios ya enviados, pulse en el botón Correos enviados para eliminar el/los registro/s existentes."
+
+#. module: mass_mailing_resend
+#: model:ir.model,name:mass_mailing_resend.model_mail_mass_mailing
+msgid "Mass Mailing"
+msgstr "Correo masivo"
+
+#. module: mass_mailing_resend
+#: model:ir.ui.view,arch_db:mass_mailing_resend.view_mail_mass_mailing_form
+msgid "Resend"
+msgstr "Reenviar"
+
+#. module: mass_mailing_resend
+#: code:addons/mass_mailing_resend/models/mass_mailing.py:16
+#, python-format
+msgid "You can't resend a mass mailing that is being sent or in draft state."
+msgstr "No puede reenviar un correo masivo que está siendo enviado en estado borrador."
+
diff --git a/mass_mailing_resend/models/__init__.py b/mass_mailing_resend/models/__init__.py
new file mode 100644
index 0000000000..d06de6035d
--- /dev/null
+++ b/mass_mailing_resend/models/__init__.py
@@ -0,0 +1,4 @@
+# -*- coding: utf-8 -*-
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
+
+from . import mass_mailing
diff --git a/mass_mailing_resend/models/mass_mailing.py b/mass_mailing_resend/models/mass_mailing.py
new file mode 100644
index 0000000000..ade99070b7
--- /dev/null
+++ b/mass_mailing_resend/models/mass_mailing.py
@@ -0,0 +1,19 @@
+# -*- coding: utf-8 -*-
+# Copyright 2017 Tecnativa - Pedro M. Baeza
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
+
+
+from odoo import _, exceptions, models
+
+
+class MailMassMailingList(models.Model):
+ _inherit = "mail.mass_mailing"
+
+ def button_draft(self):
+ """Return to draft state for resending the mass mailing."""
+ if any(self.mapped(lambda x: x.state != 'done')):
+ raise exceptions.UserError(
+ _("You can't resend a mass mailing that is being sent or in "
+ "draft state.")
+ )
+ self.write({'state': 'draft'})
diff --git a/mass_mailing_resend/static/description/icon.png b/mass_mailing_resend/static/description/icon.png
new file mode 100644
index 0000000000000000000000000000000000000000..7828a2dc94f7b33fff3a60f076ac39b9f34b8684
GIT binary patch
literal 5936
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
+ New sending will be done only to not sent/new recipients. If you want to resend again the mass mailing to already sent recipients, click on Emails Sent smart-button for removing the existing record(s).
+
+
+
+
+ {'invisible': [('sent', '=', 0)]}
+
+
+
+
+
From 80cf1451d1cba636c706990ab087a60a20c34d56 Mon Sep 17 00:00:00 2001
From: OCA Transbot
Date: Sat, 27 Jan 2018 14:34:59 +0100
Subject: [PATCH 2/8] OCA Transbot updated translations from Transifex
---
mass_mailing_resend/i18n/ca.po | 44 ++++++++++++++++++++++++++++
mass_mailing_resend/i18n/de.po | 44 ++++++++++++++++++++++++++++
mass_mailing_resend/i18n/fr.po | 52 ++++++++++++++++++++++++++++++++++
mass_mailing_resend/i18n/sl.po | 44 ++++++++++++++++++++++++++++
4 files changed, 184 insertions(+)
create mode 100644 mass_mailing_resend/i18n/ca.po
create mode 100644 mass_mailing_resend/i18n/de.po
create mode 100644 mass_mailing_resend/i18n/fr.po
create mode 100644 mass_mailing_resend/i18n/sl.po
diff --git a/mass_mailing_resend/i18n/ca.po b/mass_mailing_resend/i18n/ca.po
new file mode 100644
index 0000000000..ae5566b2d3
--- /dev/null
+++ b/mass_mailing_resend/i18n/ca.po
@@ -0,0 +1,44 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * mass_mailing_resend
+#
+# Translators:
+# OCA Transbot , 2018
+msgid ""
+msgstr ""
+"Project-Id-Version: Odoo Server 10.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2018-01-24 03:51+0000\n"
+"PO-Revision-Date: 2018-01-24 03:51+0000\n"
+"Last-Translator: OCA Transbot , 2018\n"
+"Language-Team: Catalan (https://www.transifex.com/oca/teams/23907/ca/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: ca\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. module: mass_mailing_resend
+#: model:ir.ui.view,arch_db:mass_mailing_resend.view_mail_mass_mailing_form
+msgid ""
+" New sending will be done only to not "
+"sent/new recipients. If you want to resend again the mass mailing to already"
+" sent recipients, click on Emails Sent smart-button for removing the "
+"existing record(s)."
+msgstr ""
+
+#. module: mass_mailing_resend
+#: model:ir.model,name:mass_mailing_resend.model_mail_mass_mailing
+msgid "Mass Mailing"
+msgstr "Correu massiu"
+
+#. module: mass_mailing_resend
+#: model:ir.ui.view,arch_db:mass_mailing_resend.view_mail_mass_mailing_form
+msgid "Resend"
+msgstr ""
+
+#. module: mass_mailing_resend
+#: code:addons/mass_mailing_resend/models/mass_mailing.py:16
+#, python-format
+msgid "You can't resend a mass mailing that is being sent or in draft state."
+msgstr ""
diff --git a/mass_mailing_resend/i18n/de.po b/mass_mailing_resend/i18n/de.po
new file mode 100644
index 0000000000..3973755b10
--- /dev/null
+++ b/mass_mailing_resend/i18n/de.po
@@ -0,0 +1,44 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * mass_mailing_resend
+#
+# Translators:
+# OCA Transbot , 2018
+msgid ""
+msgstr ""
+"Project-Id-Version: Odoo Server 10.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2018-01-24 03:51+0000\n"
+"PO-Revision-Date: 2018-01-24 03:51+0000\n"
+"Last-Translator: OCA Transbot , 2018\n"
+"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: de\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. module: mass_mailing_resend
+#: model:ir.ui.view,arch_db:mass_mailing_resend.view_mail_mass_mailing_form
+msgid ""
+" New sending will be done only to not "
+"sent/new recipients. If you want to resend again the mass mailing to already"
+" sent recipients, click on Emails Sent smart-button for removing the "
+"existing record(s)."
+msgstr ""
+
+#. module: mass_mailing_resend
+#: model:ir.model,name:mass_mailing_resend.model_mail_mass_mailing
+msgid "Mass Mailing"
+msgstr "Massenmailing"
+
+#. module: mass_mailing_resend
+#: model:ir.ui.view,arch_db:mass_mailing_resend.view_mail_mass_mailing_form
+msgid "Resend"
+msgstr ""
+
+#. module: mass_mailing_resend
+#: code:addons/mass_mailing_resend/models/mass_mailing.py:16
+#, python-format
+msgid "You can't resend a mass mailing that is being sent or in draft state."
+msgstr ""
diff --git a/mass_mailing_resend/i18n/fr.po b/mass_mailing_resend/i18n/fr.po
new file mode 100644
index 0000000000..e13c33deb5
--- /dev/null
+++ b/mass_mailing_resend/i18n/fr.po
@@ -0,0 +1,52 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * mass_mailing_resend
+#
+# Translators:
+# OCA Transbot , 2018
+# Quentin THEURET , 2018
+msgid ""
+msgstr ""
+"Project-Id-Version: Odoo Server 10.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2018-02-26 01:46+0000\n"
+"PO-Revision-Date: 2018-02-26 01:46+0000\n"
+"Last-Translator: Quentin THEURET , 2018\n"
+"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: fr\n"
+"Plural-Forms: nplurals=2; plural=(n > 1);\n"
+
+#. module: mass_mailing_resend
+#: model:ir.ui.view,arch_db:mass_mailing_resend.view_mail_mass_mailing_form
+msgid ""
+" New sending will be done only to not "
+"sent/new recipients. If you want to resend again the mass mailing to already"
+" sent recipients, click on Emails Sent smart-button for removing the "
+"existing record(s)."
+msgstr ""
+"Un nouvel envoi sera effectué uniquement aux"
+" nouveaux destinataires ou à ceux qui ne l'ont pas encore reçu. Si vous "
+"souhaitez envoyer à nouveau le publipostage à tous les destinataires, "
+"cliquez sur le bouton Courriels envoyéspour supprimer le(s) "
+"enregistrement(s) existant(s)."
+
+#. module: mass_mailing_resend
+#: model:ir.model,name:mass_mailing_resend.model_mail_mass_mailing
+msgid "Mass Mailing"
+msgstr "Publipostage"
+
+#. module: mass_mailing_resend
+#: model:ir.ui.view,arch_db:mass_mailing_resend.view_mail_mass_mailing_form
+msgid "Resend"
+msgstr "Renvoyer"
+
+#. module: mass_mailing_resend
+#: code:addons/mass_mailing_resend/models/mass_mailing.py:16
+#, python-format
+msgid "You can't resend a mass mailing that is being sent or in draft state."
+msgstr ""
+"Vous ne pouvez pas renvoyer un publipostage qui est déjà envoyé ou dans un "
+"état brouillon."
diff --git a/mass_mailing_resend/i18n/sl.po b/mass_mailing_resend/i18n/sl.po
new file mode 100644
index 0000000000..3edb803e32
--- /dev/null
+++ b/mass_mailing_resend/i18n/sl.po
@@ -0,0 +1,44 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * mass_mailing_resend
+#
+# Translators:
+# OCA Transbot , 2018
+msgid ""
+msgstr ""
+"Project-Id-Version: Odoo Server 10.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2018-01-24 03:51+0000\n"
+"PO-Revision-Date: 2018-01-24 03:51+0000\n"
+"Last-Translator: OCA Transbot , 2018\n"
+"Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: sl\n"
+"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n"
+
+#. module: mass_mailing_resend
+#: model:ir.ui.view,arch_db:mass_mailing_resend.view_mail_mass_mailing_form
+msgid ""
+" New sending will be done only to not "
+"sent/new recipients. If you want to resend again the mass mailing to already"
+" sent recipients, click on Emails Sent smart-button for removing the "
+"existing record(s)."
+msgstr ""
+
+#. module: mass_mailing_resend
+#: model:ir.model,name:mass_mailing_resend.model_mail_mass_mailing
+msgid "Mass Mailing"
+msgstr "Masovno razpošiljanje"
+
+#. module: mass_mailing_resend
+#: model:ir.ui.view,arch_db:mass_mailing_resend.view_mail_mass_mailing_form
+msgid "Resend"
+msgstr ""
+
+#. module: mass_mailing_resend
+#: code:addons/mass_mailing_resend/models/mass_mailing.py:16
+#, python-format
+msgid "You can't resend a mass mailing that is being sent or in draft state."
+msgstr ""
From 353360d7d448e945ef234d8520d5a68a77715227 Mon Sep 17 00:00:00 2001
From: oca-travis
Date: Sat, 23 Jun 2018 22:00:01 +0000
Subject: [PATCH 3/8] [UPD] Update mass_mailing_resend.pot
---
mass_mailing_resend/i18n/ca.po | 10 +++---
mass_mailing_resend/i18n/de.po | 10 +++---
mass_mailing_resend/i18n/es.po | 20 ++++++++---
mass_mailing_resend/i18n/fr.po | 14 ++++----
.../i18n/mass_mailing_resend.pot | 36 +++++++++++++++++++
mass_mailing_resend/i18n/sl.po | 13 +++----
6 files changed, 75 insertions(+), 28 deletions(-)
create mode 100644 mass_mailing_resend/i18n/mass_mailing_resend.pot
diff --git a/mass_mailing_resend/i18n/ca.po b/mass_mailing_resend/i18n/ca.po
index ae5566b2d3..1b59b4878c 100644
--- a/mass_mailing_resend/i18n/ca.po
+++ b/mass_mailing_resend/i18n/ca.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mass_mailing_resend
-#
+#
# Translators:
# OCA Transbot , 2018
msgid ""
@@ -12,18 +12,18 @@ msgstr ""
"PO-Revision-Date: 2018-01-24 03:51+0000\n"
"Last-Translator: OCA Transbot , 2018\n"
"Language-Team: Catalan (https://www.transifex.com/oca/teams/23907/ca/)\n"
+"Language: ca\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
-"Language: ca\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: mass_mailing_resend
#: model:ir.ui.view,arch_db:mass_mailing_resend.view_mail_mass_mailing_form
msgid ""
-" New sending will be done only to not "
-"sent/new recipients. If you want to resend again the mass mailing to already"
-" sent recipients, click on Emails Sent smart-button for removing the "
+" New sending will be done only to not sent/"
+"new recipients. If you want to resend again the mass mailing to already sent "
+"recipients, click on Emails Sent smart-button for removing the "
"existing record(s)."
msgstr ""
diff --git a/mass_mailing_resend/i18n/de.po b/mass_mailing_resend/i18n/de.po
index 3973755b10..d9f24faec4 100644
--- a/mass_mailing_resend/i18n/de.po
+++ b/mass_mailing_resend/i18n/de.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mass_mailing_resend
-#
+#
# Translators:
# OCA Transbot , 2018
msgid ""
@@ -12,18 +12,18 @@ msgstr ""
"PO-Revision-Date: 2018-01-24 03:51+0000\n"
"Last-Translator: OCA Transbot , 2018\n"
"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n"
+"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
-"Language: de\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: mass_mailing_resend
#: model:ir.ui.view,arch_db:mass_mailing_resend.view_mail_mass_mailing_form
msgid ""
-" New sending will be done only to not "
-"sent/new recipients. If you want to resend again the mass mailing to already"
-" sent recipients, click on Emails Sent smart-button for removing the "
+" New sending will be done only to not sent/"
+"new recipients. If you want to resend again the mass mailing to already sent "
+"recipients, click on Emails Sent smart-button for removing the "
"existing record(s)."
msgstr ""
diff --git a/mass_mailing_resend/i18n/es.po b/mass_mailing_resend/i18n/es.po
index cdb4db747b..0e0c6d3d69 100644
--- a/mass_mailing_resend/i18n/es.po
+++ b/mass_mailing_resend/i18n/es.po
@@ -1,6 +1,6 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
-# * mass_mailing_resend
+# * mass_mailing_resend
#
msgid ""
msgstr ""
@@ -10,6 +10,7 @@ msgstr ""
"PO-Revision-Date: 2017-11-22 10:42+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
+"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
@@ -17,8 +18,16 @@ msgstr ""
#. module: mass_mailing_resend
#: model:ir.ui.view,arch_db:mass_mailing_resend.view_mail_mass_mailing_form
-msgid " New sending will be done only to not sent/new recipients. If you want to resend again the mass mailing to already sent recipients, click on Emails Sent smart-button for removing the existing record(s)."
-msgstr " El nuevo envío se realizará solo a los destinatarios no enviados/nuevos. Si quiere reenviar otra vez el correo masivo a destinatarios ya enviados, pulse en el botón Correos enviados para eliminar el/los registro/s existentes."
+msgid ""
+" New sending will be done only to not sent/"
+"new recipients. If you want to resend again the mass mailing to already sent "
+"recipients, click on Emails Sent smart-button for removing the "
+"existing record(s)."
+msgstr ""
+" El nuevo envío se realizará solo a los "
+"destinatarios no enviados/nuevos. Si quiere reenviar otra vez el correo "
+"masivo a destinatarios ya enviados, pulse en el botón Correos enviados"
+"b> para eliminar el/los registro/s existentes."
#. module: mass_mailing_resend
#: model:ir.model,name:mass_mailing_resend.model_mail_mass_mailing
@@ -34,5 +43,6 @@ msgstr "Reenviar"
#: code:addons/mass_mailing_resend/models/mass_mailing.py:16
#, python-format
msgid "You can't resend a mass mailing that is being sent or in draft state."
-msgstr "No puede reenviar un correo masivo que está siendo enviado en estado borrador."
-
+msgstr ""
+"No puede reenviar un correo masivo que está siendo enviado en estado "
+"borrador."
diff --git a/mass_mailing_resend/i18n/fr.po b/mass_mailing_resend/i18n/fr.po
index e13c33deb5..e7b14bb479 100644
--- a/mass_mailing_resend/i18n/fr.po
+++ b/mass_mailing_resend/i18n/fr.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mass_mailing_resend
-#
+#
# Translators:
# OCA Transbot , 2018
# Quentin THEURET , 2018
@@ -13,22 +13,22 @@ msgstr ""
"PO-Revision-Date: 2018-02-26 01:46+0000\n"
"Last-Translator: Quentin THEURET , 2018\n"
"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n"
+"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
-"Language: fr\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: mass_mailing_resend
#: model:ir.ui.view,arch_db:mass_mailing_resend.view_mail_mass_mailing_form
msgid ""
-" New sending will be done only to not "
-"sent/new recipients. If you want to resend again the mass mailing to already"
-" sent recipients, click on Emails Sent smart-button for removing the "
+" New sending will be done only to not sent/"
+"new recipients. If you want to resend again the mass mailing to already sent "
+"recipients, click on Emails Sent smart-button for removing the "
"existing record(s)."
msgstr ""
-"Un nouvel envoi sera effectué uniquement aux"
-" nouveaux destinataires ou à ceux qui ne l'ont pas encore reçu. Si vous "
+"Un nouvel envoi sera effectué uniquement aux "
+"nouveaux destinataires ou à ceux qui ne l'ont pas encore reçu. Si vous "
"souhaitez envoyer à nouveau le publipostage à tous les destinataires, "
"cliquez sur le bouton Courriels envoyéspour supprimer le(s) "
"enregistrement(s) existant(s)."
diff --git a/mass_mailing_resend/i18n/mass_mailing_resend.pot b/mass_mailing_resend/i18n/mass_mailing_resend.pot
new file mode 100644
index 0000000000..e05b393d24
--- /dev/null
+++ b/mass_mailing_resend/i18n/mass_mailing_resend.pot
@@ -0,0 +1,36 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * mass_mailing_resend
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Odoo Server 10.0\n"
+"Report-Msgid-Bugs-To: \n"
+"Last-Translator: <>\n"
+"Language-Team: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Plural-Forms: \n"
+
+#. module: mass_mailing_resend
+#: model:ir.ui.view,arch_db:mass_mailing_resend.view_mail_mass_mailing_form
+msgid " New sending will be done only to not sent/new recipients. If you want to resend again the mass mailing to already sent recipients, click on Emails Sent smart-button for removing the existing record(s)."
+msgstr ""
+
+#. module: mass_mailing_resend
+#: model:ir.model,name:mass_mailing_resend.model_mail_mass_mailing
+msgid "Mass Mailing"
+msgstr ""
+
+#. module: mass_mailing_resend
+#: model:ir.ui.view,arch_db:mass_mailing_resend.view_mail_mass_mailing_form
+msgid "Resend"
+msgstr ""
+
+#. module: mass_mailing_resend
+#: code:addons/mass_mailing_resend/models/mass_mailing.py:16
+#, python-format
+msgid "You can't resend a mass mailing that is being sent or in draft state."
+msgstr ""
+
diff --git a/mass_mailing_resend/i18n/sl.po b/mass_mailing_resend/i18n/sl.po
index 3edb803e32..b70a89ccf8 100644
--- a/mass_mailing_resend/i18n/sl.po
+++ b/mass_mailing_resend/i18n/sl.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mass_mailing_resend
-#
+#
# Translators:
# OCA Transbot , 2018
msgid ""
@@ -12,18 +12,19 @@ msgstr ""
"PO-Revision-Date: 2018-01-24 03:51+0000\n"
"Last-Translator: OCA Transbot , 2018\n"
"Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n"
+"Language: sl\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
-"Language: sl\n"
-"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n"
+"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n"
+"%100==4 ? 2 : 3);\n"
#. module: mass_mailing_resend
#: model:ir.ui.view,arch_db:mass_mailing_resend.view_mail_mass_mailing_form
msgid ""
-" New sending will be done only to not "
-"sent/new recipients. If you want to resend again the mass mailing to already"
-" sent recipients, click on Emails Sent smart-button for removing the "
+" New sending will be done only to not sent/"
+"new recipients. If you want to resend again the mass mailing to already sent "
+"recipients, click on Emails Sent smart-button for removing the "
"existing record(s)."
msgstr ""
From 49dfd719f72638506c45e772fb3133638992084a Mon Sep 17 00:00:00 2001
From: "Pedro M. Baeza"
Date: Fri, 10 Aug 2018 07:56:00 +0200
Subject: [PATCH 4/8] [MIG] mass_mailing_resend: Migration to 11.0
* Standard procedure
* Adopt README by fragments
* Adapt tests
---
mass_mailing_resend/README.rst | 81 +++++++++++++------
mass_mailing_resend/__manifest__.py | 5 +-
mass_mailing_resend/models/__init__.py | 1 -
mass_mailing_resend/models/mass_mailing.py | 1 -
mass_mailing_resend/readme/CONTRIBUTORS.rst | 3 +
mass_mailing_resend/readme/DESCRIPTION.rst | 15 ++++
mass_mailing_resend/readme/ROADMAP.rst | 3 +
mass_mailing_resend/readme/USAGE.rst | 4 +
mass_mailing_resend/tests/__init__.py | 1 -
.../tests/test_mass_mailing_resend.py | 7 +-
10 files changed, 86 insertions(+), 35 deletions(-)
create mode 100644 mass_mailing_resend/readme/CONTRIBUTORS.rst
create mode 100644 mass_mailing_resend/readme/DESCRIPTION.rst
create mode 100644 mass_mailing_resend/readme/ROADMAP.rst
create mode 100644 mass_mailing_resend/readme/USAGE.rst
diff --git a/mass_mailing_resend/README.rst b/mass_mailing_resend/README.rst
index 84deb127bc..e325985247 100644
--- a/mass_mailing_resend/README.rst
+++ b/mass_mailing_resend/README.rst
@@ -1,11 +1,30 @@
-.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
- :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
- :alt: License: AGPL-3
-
====================
Resend mass mailings
====================
+.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+ !! This file is generated by oca-gen-addon-readme !!
+ !! changes will be overwritten. !!
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+
+.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
+ :target: https://odoo-community.org/page/development-status
+ :alt: Beta
+.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
+ :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
+ :alt: License: AGPL-3
+.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fsocial-lightgray.png?logo=github
+ :target: https://github.com/OCA/social/tree/11.0/mass_mailing_resend
+ :alt: OCA/social
+.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
+ :target: https://translation.odoo-community.org/projects/social-11-0/social-11-0-mass_mailing_resend
+ :alt: Translate me on Weblate
+.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
+ :target: https://runbot.odoo-community.org/runbot/205/11.0
+ :alt: Try me on Runbot
+
+|badge1| |badge2| |badge3| |badge4| |badge5|
+
A frequent need for users of mass mailings is to resend one mailing that has
already been sent in the past to new recipients that haven't received yet that
mail. But the problem is to know which are the applicable ones.
@@ -15,33 +34,26 @@ the same mail 2 times for one mass mailing, and for v9, there was a trick that
allows to modify the state of a mass mailing from kanban view, covering the
need.
-But now on v10 both status bar in form view and dragging between states in
+But now since v10 both status bar in form view and dragging between states in
kanban are not allowed.
This module introduces a button to restart a mass mailing to draft state,
allowing you to reevaluate the sending domain or list for performing again
the mailing.
+**Table of contents**
+
+.. contents::
+ :local:
+
Usage
=====
-* Go to *Mass mailing > Mailings > Mass Mailings*.
+* Go to *Email marketing > Mailings > Mass Mailings*.
* Click on one record that is done or create a new one and send it.
* You will see a button called "Resend".
* If you click on it, mass mailing will be set to Draft again.
-.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
- :alt: Try me on Runbot
- :target: https://runbot.odoo-community.org/runbot/205/10.0
-
-Bug Tracker
-===========
-
-Bugs are tracked on `GitHub Issues
-`_. In case of trouble, please
-check there if your issue has already been reported. If you spotted it first,
-help us smashing it by providing a detailed and welcomed feedback.
-
Known issues / Roadmap
======================
@@ -49,27 +61,44 @@ Known issues / Roadmap
* Include information on the number of new recipients to be sent on the
resending (through `get_remaining_recipients` method).
+Bug Tracker
+===========
+
+Bugs are tracked on `GitHub Issues `_.
+In case of trouble, please check there if your issue has already been reported.
+If you spotted it first, help us smashing it by providing a detailed and welcomed
+`feedback `_.
+
+Do not contact contributors directly about support or help with technical issues.
Credits
=======
+Authors
+~~~~~~~
+
+* Tecnativa
+
Contributors
-------------
+~~~~~~~~~~~~
+
+* `Tecnativa `_:
-* Tecnativa (https://www.tecnativa.com):
- * Pedro M. Baeza
+ * Pedro M. Baeza
-Maintainer
-----------
+Maintainers
+~~~~~~~~~~~
+
+This module is maintained by the OCA.
.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org
-This module is maintained by the OCA.
-
OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.
-To contribute to this module, please visit https://odoo-community.org.
+This module is part of the `OCA/social `_ project on GitHub.
+
+You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/mass_mailing_resend/__manifest__.py b/mass_mailing_resend/__manifest__.py
index 9e7260b6b7..6c6a103b0d 100644
--- a/mass_mailing_resend/__manifest__.py
+++ b/mass_mailing_resend/__manifest__.py
@@ -1,10 +1,9 @@
-# -*- coding: utf-8 -*-
-# Copyright 2017 Tecnativa - Pedro M. Baeza
+# Copyright 2017-2018 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Resend mass mailings",
- "version": "10.0.1.0.0",
+ "version": "11.0.1.0.0",
"category": "Marketing",
"website": "https://github.com/OCA/social",
"author": "Tecnativa, "
diff --git a/mass_mailing_resend/models/__init__.py b/mass_mailing_resend/models/__init__.py
index d06de6035d..57344fa08b 100644
--- a/mass_mailing_resend/models/__init__.py
+++ b/mass_mailing_resend/models/__init__.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import mass_mailing
diff --git a/mass_mailing_resend/models/mass_mailing.py b/mass_mailing_resend/models/mass_mailing.py
index ade99070b7..baec0e503b 100644
--- a/mass_mailing_resend/models/mass_mailing.py
+++ b/mass_mailing_resend/models/mass_mailing.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
# Copyright 2017 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
diff --git a/mass_mailing_resend/readme/CONTRIBUTORS.rst b/mass_mailing_resend/readme/CONTRIBUTORS.rst
new file mode 100644
index 0000000000..2d4d7a8843
--- /dev/null
+++ b/mass_mailing_resend/readme/CONTRIBUTORS.rst
@@ -0,0 +1,3 @@
+* `Tecnativa `_:
+
+ * Pedro M. Baeza
diff --git a/mass_mailing_resend/readme/DESCRIPTION.rst b/mass_mailing_resend/readme/DESCRIPTION.rst
new file mode 100644
index 0000000000..670358190b
--- /dev/null
+++ b/mass_mailing_resend/readme/DESCRIPTION.rst
@@ -0,0 +1,15 @@
+A frequent need for users of mass mailings is to resend one mailing that has
+already been sent in the past to new recipients that haven't received yet that
+mail. But the problem is to know which are the applicable ones.
+
+Odoo already includes a method in its mass mailing logic that avoids to resend
+the same mail 2 times for one mass mailing, and for v9, there was a trick that
+allows to modify the state of a mass mailing from kanban view, covering the
+need.
+
+But now since v10 both status bar in form view and dragging between states in
+kanban are not allowed.
+
+This module introduces a button to restart a mass mailing to draft state,
+allowing you to reevaluate the sending domain or list for performing again
+the mailing.
diff --git a/mass_mailing_resend/readme/ROADMAP.rst b/mass_mailing_resend/readme/ROADMAP.rst
new file mode 100644
index 0000000000..494b75ad24
--- /dev/null
+++ b/mass_mailing_resend/readme/ROADMAP.rst
@@ -0,0 +1,3 @@
+* Add an indicator / filter for knowing resent mailings.
+* Include information on the number of new recipients to be sent on the
+ resending (through `get_remaining_recipients` method).
diff --git a/mass_mailing_resend/readme/USAGE.rst b/mass_mailing_resend/readme/USAGE.rst
new file mode 100644
index 0000000000..a41cdf18a0
--- /dev/null
+++ b/mass_mailing_resend/readme/USAGE.rst
@@ -0,0 +1,4 @@
+* Go to *Email marketing > Mailings > Mass Mailings*.
+* Click on one record that is done or create a new one and send it.
+* You will see a button called "Resend".
+* If you click on it, mass mailing will be set to Draft again.
diff --git a/mass_mailing_resend/tests/__init__.py b/mass_mailing_resend/tests/__init__.py
index efeb842626..6b595861d9 100644
--- a/mass_mailing_resend/tests/__init__.py
+++ b/mass_mailing_resend/tests/__init__.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import test_mass_mailing_resend
diff --git a/mass_mailing_resend/tests/test_mass_mailing_resend.py b/mass_mailing_resend/tests/test_mass_mailing_resend.py
index 41c25ee922..c6c10dc98e 100644
--- a/mass_mailing_resend/tests/test_mass_mailing_resend.py
+++ b/mass_mailing_resend/tests/test_mass_mailing_resend.py
@@ -1,5 +1,4 @@
-# -*- coding: utf-8 -*-
-# Copyright 2017 Tecnativa - Pedro M. Baeza
+# Copyright 2017-2018 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo.tests import common
@@ -20,7 +19,9 @@ def setUpClass(cls):
cls.mass_mailing = cls.env['mail.mass_mailing'].create({
'name': 'Test mass mailing',
'email_from': 'test@example.org',
- 'mailing_model': 'mail.mass_mailing.contact',
+ 'mailing_model_id': cls.env.ref(
+ 'mass_mailing.model_mail_mass_mailing_contact'
+ ).id,
'contact_list_ids': [(6, 0, cls.list.ids)],
'reply_to_mode': 'thread',
})
From fc815907659844586163f6f4415a845efbfe85fd Mon Sep 17 00:00:00 2001
From: oca-travis
Date: Mon, 13 Aug 2018 08:28:17 +0000
Subject: [PATCH 5/8] [UPD] Update mass_mailing_resend.pot
---
mass_mailing_resend/i18n/mass_mailing_resend.pot | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mass_mailing_resend/i18n/mass_mailing_resend.pot b/mass_mailing_resend/i18n/mass_mailing_resend.pot
index e05b393d24..3bfdd90854 100644
--- a/mass_mailing_resend/i18n/mass_mailing_resend.pot
+++ b/mass_mailing_resend/i18n/mass_mailing_resend.pot
@@ -4,7 +4,7 @@
#
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 10.0\n"
+"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: <>\n"
"Language-Team: \n"
@@ -29,7 +29,7 @@ msgid "Resend"
msgstr ""
#. module: mass_mailing_resend
-#: code:addons/mass_mailing_resend/models/mass_mailing.py:16
+#: code:addons/mass_mailing_resend/models/mass_mailing.py:15
#, python-format
msgid "You can't resend a mass mailing that is being sent or in draft state."
msgstr ""
From 059c6d6c5a593186533c1a4cba93be5f8ae4f069 Mon Sep 17 00:00:00 2001
From: OCA Git Bot
Date: Fri, 24 Aug 2018 05:29:55 +0200
Subject: [PATCH 6/8] [UPD] README.rst
---
.../static/description/index.html | 452 ++++++++++++++++++
1 file changed, 452 insertions(+)
create mode 100644 mass_mailing_resend/static/description/index.html
diff --git a/mass_mailing_resend/static/description/index.html b/mass_mailing_resend/static/description/index.html
new file mode 100644
index 0000000000..1ffe22d9f1
--- /dev/null
+++ b/mass_mailing_resend/static/description/index.html
@@ -0,0 +1,452 @@
+
+
+
+
+
+
+Resend mass mailings
+
+
+
+
+
Resend mass mailings
+
+
+
+
A frequent need for users of mass mailings is to resend one mailing that has
+already been sent in the past to new recipients that haven’t received yet that
+mail. But the problem is to know which are the applicable ones.
+
Odoo already includes a method in its mass mailing logic that avoids to resend
+the same mail 2 times for one mass mailing, and for v9, there was a trick that
+allows to modify the state of a mass mailing from kanban view, covering the
+need.
+
But now since v10 both status bar in form view and dragging between states in
+kanban are not allowed.
+
This module introduces a button to restart a mass mailing to draft state,
+allowing you to reevaluate the sending domain or list for performing again
+the mailing.
Bugs are tracked on GitHub Issues.
+In case of trouble, please check there if your issue has already been reported.
+If you spotted it first, help us smashing it by providing a detailed and welcomed
+feedback.
+
Do not contact contributors directly about support or help with technical issues.
OCA, or the Odoo Community Association, is a nonprofit organization whose
+mission is to support the collaborative development of Odoo features and
+promote its widespread use.
+
This module is part of the OCA/social project on GitHub.
+
+
From a649fefc68e72bc558cb41bf06488b3b739afa5b Mon Sep 17 00:00:00 2001
From: ernesto
Date: Mon, 12 Nov 2018 00:46:56 -0500
Subject: [PATCH 7/8] [MIG] mass_mailing_resend: Migration to 12.0
---
mass_mailing_resend/README.rst | 11 ++++++-----
mass_mailing_resend/__manifest__.py | 3 ++-
mass_mailing_resend/readme/CONTRIBUTORS.rst | 1 +
mass_mailing_resend/static/description/index.html | 7 ++++---
4 files changed, 13 insertions(+), 9 deletions(-)
diff --git a/mass_mailing_resend/README.rst b/mass_mailing_resend/README.rst
index e325985247..0f98264e62 100644
--- a/mass_mailing_resend/README.rst
+++ b/mass_mailing_resend/README.rst
@@ -14,13 +14,13 @@ Resend mass mailings
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fsocial-lightgray.png?logo=github
- :target: https://github.com/OCA/social/tree/11.0/mass_mailing_resend
+ :target: https://github.com/OCA/social/tree/12.0/mass_mailing_resend
:alt: OCA/social
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
- :target: https://translation.odoo-community.org/projects/social-11-0/social-11-0-mass_mailing_resend
+ :target: https://translation.odoo-community.org/projects/social-12-0/social-12-0-mass_mailing_resend
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
- :target: https://runbot.odoo-community.org/runbot/205/11.0
+ :target: https://runbot.odoo-community.org/runbot/205/12.0
:alt: Try me on Runbot
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -67,7 +67,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues `_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
-`feedback `_.
+`feedback `_.
Do not contact contributors directly about support or help with technical issues.
@@ -85,6 +85,7 @@ Contributors
* `Tecnativa `_:
* Pedro M. Baeza
+ * Ernesto Tejeda
Maintainers
~~~~~~~~~~~
@@ -99,6 +100,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.
-This module is part of the `OCA/social `_ project on GitHub.
+This module is part of the `OCA/social `_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/mass_mailing_resend/__manifest__.py b/mass_mailing_resend/__manifest__.py
index 6c6a103b0d..9b97a6c3d2 100644
--- a/mass_mailing_resend/__manifest__.py
+++ b/mass_mailing_resend/__manifest__.py
@@ -1,9 +1,10 @@
# Copyright 2017-2018 Tecnativa - Pedro M. Baeza
+# Copyright 2018 Tecnativa - Ernesto Tejeda
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Resend mass mailings",
- "version": "11.0.1.0.0",
+ "version": "12.0.1.0.0",
"category": "Marketing",
"website": "https://github.com/OCA/social",
"author": "Tecnativa, "
diff --git a/mass_mailing_resend/readme/CONTRIBUTORS.rst b/mass_mailing_resend/readme/CONTRIBUTORS.rst
index 2d4d7a8843..29c1846f5a 100644
--- a/mass_mailing_resend/readme/CONTRIBUTORS.rst
+++ b/mass_mailing_resend/readme/CONTRIBUTORS.rst
@@ -1,3 +1,4 @@
* `Tecnativa `_:
* Pedro M. Baeza
+ * Ernesto Tejeda
diff --git a/mass_mailing_resend/static/description/index.html b/mass_mailing_resend/static/description/index.html
index 1ffe22d9f1..802a191a46 100644
--- a/mass_mailing_resend/static/description/index.html
+++ b/mass_mailing_resend/static/description/index.html
@@ -367,7 +367,7 @@
Resend mass mailings
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
-
+
A frequent need for users of mass mailings is to resend one mailing that has
already been sent in the past to new recipients that haven’t received yet that
mail. But the problem is to know which are the applicable ones.
Bugs are tracked on GitHub Issues.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
-feedback.
OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.
-
This module is part of the OCA/social project on GitHub.
+
This module is part of the OCA/social project on GitHub.
New sending will be done only to not sent/new recipients. If you want to resend again the mass mailing to already sent recipients, click on Emails Sent smart-button for removing the existing record(s).