Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from Antiun/pr-add_event_registration_mass_mai…
…ling [ADD] event_registration_mass_mailing
- Loading branch information
Showing
14 changed files
with
537 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
.. 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 | ||
|
||
======================== | ||
Mass mailing from events | ||
======================== | ||
|
||
This module adds actions to send mass mailings and allows to add to mailing | ||
lists from event registrations tree view. | ||
|
||
Usage | ||
===== | ||
|
||
* Add 'More > Mass mailing to partners' button in the partner views: with this | ||
button, you can send an email to the selected registrations. | ||
|
||
* Add 'More > Add to mailing list' button in the partner views: with this | ||
button, you can add the selected registrations to a mailing list. | ||
|
||
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas | ||
:alt: Try me on Runbot | ||
:target: https://runbot.odoo-community.org/runbot/199/8.0 | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/event/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 | ||
`here <https://github.com/OCA/event/issues/new?body=module:%20event_registration_mass_mailing%0Aversion:%208.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. | ||
|
||
|
||
Credits | ||
======= | ||
|
||
Contributors | ||
------------ | ||
* Javier Iniesta <javieria@antiun.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 http://odoo-community.org. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# -*- coding: utf-8 -*- | ||
# License AGPL-3: Antiun Ingenieria S.L. - Javier Iniesta | ||
# See README.rst file on addon root folder for more details | ||
|
||
from . import models | ||
from . import wizard |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# -*- coding: utf-8 -*- | ||
# License AGPL-3: Antiun Ingenieria S.L. - Javier Iniesta | ||
# See README.rst file on addon root folder for more details | ||
|
||
{ | ||
'name': "Mass mailing from events", | ||
'category': 'Marketing', | ||
'version': '8.0.1.0.0', | ||
'depends': [ | ||
'event', | ||
'mass_mailing' | ||
], | ||
'data': [ | ||
'views/event_registration.xml', | ||
'wizard/event_registration_mail_list_wizard.xml', | ||
], | ||
'author': 'Antiun Ingeniería S.L.,Odoo Community Association (OCA)', | ||
'website': 'http://www.antiun.com', | ||
'license': 'AGPL-3', | ||
'installable': True, | ||
'auto_install': True, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * event_registration_mass_mailing | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 8.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2015-11-10 16:37+0000\n" | ||
"PO-Revision-Date: 2015-11-10 16:37+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: event_registration_mass_mailing | ||
#: model:ir.actions.act_window,name:event_registration_mass_mailing.action_event_registration_mail_list | ||
msgid "Add to mailing list" | ||
msgstr "Añadir a lista de correos" | ||
|
||
#. module: event_registration_mass_mailing | ||
#: view:event.registration:event_registration_mass_mailing.view_registration_search | ||
msgid "Available for mass mailing" | ||
msgstr "Disponible para envío masivo de correo" | ||
|
||
#. module: event_registration_mass_mailing | ||
#: view:event.registration.mail.list.wizard:event_registration_mass_mailing.event_registration_mail_list_wizard_form | ||
msgid "Cancel" | ||
msgstr "Cancelar" | ||
|
||
#. module: event_registration_mass_mailing | ||
#: view:event.registration.mail.list.wizard:event_registration_mass_mailing.event_registration_mail_list_wizard_form | ||
#: model:ir.model,name:event_registration_mass_mailing.model_event_registration_mail_list_wizard | ||
msgid "Create contact mailing list" | ||
msgstr "Crear contactos de lista de correo" | ||
|
||
#. module: event_registration_mass_mailing | ||
#: view:event.registration.mail.list.wizard:event_registration_mass_mailing.event_registration_mail_list_wizard_form | ||
msgid "Create contacts" | ||
msgstr "Crear contactos" | ||
|
||
#. module: event_registration_mass_mailing | ||
#: field:event.registration.mail.list.wizard,create_uid:0 | ||
msgid "Created by" | ||
msgstr "Creado por" | ||
|
||
#. module: event_registration_mass_mailing | ||
#: field:event.registration.mail.list.wizard,create_date:0 | ||
msgid "Created on" | ||
msgstr "Creado en" | ||
|
||
#. module: event_registration_mass_mailing | ||
#: model:ir.model,name:event_registration_mass_mailing.model_event_registration | ||
msgid "Event Registration" | ||
msgstr "Registro" | ||
|
||
#. module: event_registration_mass_mailing | ||
#: code:addons/event_registration_mass_mailing/models/mass_mailing.py:15 | ||
#, python-format | ||
msgid "Event Registrations" | ||
msgstr "Registros a eventos" | ||
|
||
#. module: event_registration_mass_mailing | ||
#: field:event.registration.mail.list.wizard,event_registrations:0 | ||
msgid "Event registrations" | ||
msgstr "Registros" | ||
|
||
#. module: event_registration_mass_mailing | ||
#: field:event.registration.mail.list.wizard,id:0 | ||
msgid "ID" | ||
msgstr "ID" | ||
|
||
#. module: event_registration_mass_mailing | ||
#: help:event.registration,opt_out:0 | ||
msgid "If opt-out is checked, this contact has refused to receive emails for mass mailing and marketing campaign." | ||
msgstr "Si 'No acepta mensajes' está marcado, este contacto ha rehusado recibir correos electrónicos de envíos masivos y campañas de marketing." | ||
|
||
#. module: event_registration_mass_mailing | ||
#: field:event.registration.mail.list.wizard,write_uid:0 | ||
msgid "Last Updated by" | ||
msgstr "Última actualización por" | ||
|
||
#. module: event_registration_mass_mailing | ||
#: field:event.registration.mail.list.wizard,write_date:0 | ||
msgid "Last Updated on" | ||
msgstr "Última actualización en" | ||
|
||
#. module: event_registration_mass_mailing | ||
#: field:event.registration.mail.list.wizard,mail_list:0 | ||
msgid "Mailing list" | ||
msgstr "Lista de correo" | ||
|
||
#. module: event_registration_mass_mailing | ||
#: model:ir.model,name:event_registration_mass_mailing.model_mail_mass_mailing | ||
msgid "Mass Mailing" | ||
msgstr "Envío masivo" | ||
|
||
#. module: event_registration_mass_mailing | ||
#: model:ir.actions.act_window,name:event_registration_mass_mailing.action_event_registration_mass_mail | ||
msgid "Mass mailing to partners" | ||
msgstr "Envío masivo a empresas" | ||
|
||
#. module: event_registration_mass_mailing | ||
#: view:event.registration:event_registration_mass_mailing.view_registration_search | ||
msgid "New" | ||
msgstr "Nuevo" | ||
|
||
#. module: event_registration_mass_mailing | ||
#: field:event.registration,opt_out:0 | ||
msgid "Opt-Out" | ||
msgstr "No acepta recibir emails" | ||
|
||
#. module: event_registration_mass_mailing | ||
#: view:event.registration:event_registration_mass_mailing.view_registration_search | ||
msgid "Registrations that did not ask not to be included in mass mailing campaigns" | ||
msgstr "Registros que pidieron no ser incluidos en campañas de envío masivo de correos" | ||
|
||
#. module: event_registration_mass_mailing | ||
#: view:event.registration.mail.list.wizard:event_registration_mass_mailing.event_registration_mail_list_wizard_form | ||
msgid "or" | ||
msgstr "o" |
123 changes: 123 additions & 0 deletions
123
event_registration_mass_mailing/i18n/event_registration_mass_mailing.pot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * event_registration_mass_mailing | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 8.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2015-11-10 16:37+0000\n" | ||
"PO-Revision-Date: 2015-11-10 16:37+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: event_registration_mass_mailing | ||
#: model:ir.actions.act_window,name:event_registration_mass_mailing.action_event_registration_mail_list | ||
msgid "Add to mailing list" | ||
msgstr "" | ||
|
||
#. module: event_registration_mass_mailing | ||
#: view:event.registration:event_registration_mass_mailing.view_registration_search | ||
msgid "Available for mass mailing" | ||
msgstr "" | ||
|
||
#. module: event_registration_mass_mailing | ||
#: view:event.registration.mail.list.wizard:event_registration_mass_mailing.event_registration_mail_list_wizard_form | ||
msgid "Cancel" | ||
msgstr "" | ||
|
||
#. module: event_registration_mass_mailing | ||
#: view:event.registration.mail.list.wizard:event_registration_mass_mailing.event_registration_mail_list_wizard_form | ||
#: model:ir.model,name:event_registration_mass_mailing.model_event_registration_mail_list_wizard | ||
msgid "Create contact mailing list" | ||
msgstr "" | ||
|
||
#. module: event_registration_mass_mailing | ||
#: view:event.registration.mail.list.wizard:event_registration_mass_mailing.event_registration_mail_list_wizard_form | ||
msgid "Create contacts" | ||
msgstr "" | ||
|
||
#. module: event_registration_mass_mailing | ||
#: field:event.registration.mail.list.wizard,create_uid:0 | ||
msgid "Created by" | ||
msgstr "" | ||
|
||
#. module: event_registration_mass_mailing | ||
#: field:event.registration.mail.list.wizard,create_date:0 | ||
msgid "Created on" | ||
msgstr "" | ||
|
||
#. module: event_registration_mass_mailing | ||
#: model:ir.model,name:event_registration_mass_mailing.model_event_registration | ||
msgid "Event Registration" | ||
msgstr "" | ||
|
||
#. module: event_registration_mass_mailing | ||
#: code:addons/event_registration_mass_mailing/models/mass_mailing.py:15 | ||
#, python-format | ||
msgid "Event Registrations" | ||
msgstr "" | ||
|
||
#. module: event_registration_mass_mailing | ||
#: field:event.registration.mail.list.wizard,event_registrations:0 | ||
msgid "Event registrations" | ||
msgstr "" | ||
|
||
#. module: event_registration_mass_mailing | ||
#: field:event.registration.mail.list.wizard,id:0 | ||
msgid "ID" | ||
msgstr "" | ||
|
||
#. module: event_registration_mass_mailing | ||
#: help:event.registration,opt_out:0 | ||
msgid "If opt-out is checked, this contact has refused to receive emails for mass mailing and marketing campaign." | ||
msgstr "" | ||
|
||
#. module: event_registration_mass_mailing | ||
#: field:event.registration.mail.list.wizard,write_uid:0 | ||
msgid "Last Updated by" | ||
msgstr "" | ||
|
||
#. module: event_registration_mass_mailing | ||
#: field:event.registration.mail.list.wizard,write_date:0 | ||
msgid "Last Updated on" | ||
msgstr "" | ||
|
||
#. module: event_registration_mass_mailing | ||
#: field:event.registration.mail.list.wizard,mail_list:0 | ||
msgid "Mailing list" | ||
msgstr "" | ||
|
||
#. module: event_registration_mass_mailing | ||
#: model:ir.model,name:event_registration_mass_mailing.model_mail_mass_mailing | ||
msgid "Mass Mailing" | ||
msgstr "" | ||
|
||
#. module: event_registration_mass_mailing | ||
#: model:ir.actions.act_window,name:event_registration_mass_mailing.action_event_registration_mass_mail | ||
msgid "Mass mailing to partners" | ||
msgstr "" | ||
|
||
#. module: event_registration_mass_mailing | ||
#: view:event.registration:event_registration_mass_mailing.view_registration_search | ||
msgid "New" | ||
msgstr "" | ||
|
||
#. module: event_registration_mass_mailing | ||
#: field:event.registration,opt_out:0 | ||
msgid "Opt-Out" | ||
msgstr "" | ||
|
||
#. module: event_registration_mass_mailing | ||
#: view:event.registration:event_registration_mass_mailing.view_registration_search | ||
msgid "Registrations that did not ask not to be included in mass mailing campaigns" | ||
msgstr "" | ||
|
||
#. module: event_registration_mass_mailing | ||
#: view:event.registration.mail.list.wizard:event_registration_mass_mailing.event_registration_mail_list_wizard_form | ||
msgid "or" | ||
msgstr "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# -*- coding: utf-8 -*- | ||
# License AGPL-3: Antiun Ingenieria S.L. - Javier Iniesta | ||
# See README.rst file on addon root folder for more details | ||
|
||
from . import event_registration | ||
from . import mass_mailing |
14 changes: 14 additions & 0 deletions
14
event_registration_mass_mailing/models/event_registration.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# -*- coding: utf-8 -*- | ||
# License AGPL-3: Antiun Ingenieria S.L. - Javier Iniesta | ||
# See README.rst file on addon root folder for more details | ||
|
||
from openerp import models, fields | ||
|
||
|
||
class EventRegistration(models.Model): | ||
_inherit = 'event.registration' | ||
|
||
opt_out = fields.Boolean( | ||
string="Opt-Out", default=False, | ||
help="If opt-out is checked, this contact has refused to receive " | ||
"emails for mass mailing and marketing campaign.") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# -*- coding: utf-8 -*- | ||
# License AGPL-3: Antiun Ingenieria S.L. - Javier Iniesta | ||
# See README.rst file on addon root folder for more details | ||
|
||
from openerp import models, api | ||
from openerp.tools.translate import _ | ||
|
||
|
||
class MassMailing(models.Model): | ||
_inherit = 'mail.mass_mailing' | ||
|
||
@api.model | ||
def _get_mailing_model(self): | ||
res = super(MassMailing, self)._get_mailing_model() | ||
res.append(('event.registration', _('Event Registrations'))) | ||
return res |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# -*- coding: utf-8 -*- | ||
# License AGPL-3: Antiun Ingenieria S.L. - Javier Iniesta | ||
# See README.rst file on addon root folder for more details | ||
|
||
from . import test_event_registration_mail_list_wizard |
Oops, something went wrong.