Skip to content

Commit

Permalink
[ADD] mass_mailing_resend (OCA#210)
Browse files Browse the repository at this point in the history
* [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).
  • Loading branch information
pedrobaeza authored and amkarthik committed May 18, 2023
1 parent e03a383 commit 27c5645
Show file tree
Hide file tree
Showing 16 changed files with 544 additions and 0 deletions.
75 changes: 75 additions & 0 deletions mass_mailing_resend/README.rst
Original file line number Diff line number Diff line change
@@ -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
<https://github.com/OCA/social/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 <pedro.baeza@tecnativa.com>

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.
4 changes: 4 additions & 0 deletions mass_mailing_resend/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# -*- coding: utf-8 -*-
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from . import models
21 changes: 21 additions & 0 deletions mass_mailing_resend/__manifest__.py
Original file line number Diff line number Diff line change
@@ -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",
],
}
44 changes: 44 additions & 0 deletions mass_mailing_resend/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mass_mailing_resend
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 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"
"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 ""
"<i class=\"fa fa-info-circle\"/> 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 <b>Emails Sent</b> 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 ""
44 changes: 44 additions & 0 deletions mass_mailing_resend/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mass_mailing_resend
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 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"
"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 ""
"<i class=\"fa fa-info-circle\"/> 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 <b>Emails Sent</b> 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 ""
48 changes: 48 additions & 0 deletions mass_mailing_resend/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# 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"
"Language: \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 ""
"<i class=\"fa fa-info-circle\"/> 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 <b>Emails Sent</b> smart-button for removing the "
"existing record(s)."
msgstr ""
"<i class=\"fa fa-info-circle\"/> 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 <b>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
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."
52 changes: 52 additions & 0 deletions mass_mailing_resend/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mass_mailing_resend
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2018
# Quentin THEURET <odoo@kerpeo.com>, 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 <odoo@kerpeo.com>, 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"
"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 ""
"<i class=\"fa fa-info-circle\"/> 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 <b>Emails Sent</b> smart-button for removing the "
"existing record(s)."
msgstr ""
"<i class=\"fa fa-info-circle\"/>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 <b>Courriels envoyés</b>pour 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."
36 changes: 36 additions & 0 deletions mass_mailing_resend/i18n/mass_mailing_resend.pot
Original file line number Diff line number Diff line change
@@ -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 "<i class=\"fa fa-info-circle\"/> 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 <b>Emails Sent</b> 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 ""

45 changes: 45 additions & 0 deletions mass_mailing_resend/i18n/sl.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mass_mailing_resend
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 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"
"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 ""
"<i class=\"fa fa-info-circle\"/> 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 <b>Emails Sent</b> 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 ""
4 changes: 4 additions & 0 deletions mass_mailing_resend/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# -*- coding: utf-8 -*-
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from . import mass_mailing
Loading

0 comments on commit 27c5645

Please sign in to comment.