Browse Source

[MIG] mass_mailing_resend: Migration to 11.0

* Standard procedure
* Adopt README by fragments
* Adapt tests
pull/294/head
Pedro M. Baeza 6 years ago
parent
commit
d741effee0
  1. 81
      mass_mailing_resend/README.rst
  2. 5
      mass_mailing_resend/__manifest__.py
  3. 1
      mass_mailing_resend/models/__init__.py
  4. 1
      mass_mailing_resend/models/mass_mailing.py
  5. 3
      mass_mailing_resend/readme/CONTRIBUTORS.rst
  6. 15
      mass_mailing_resend/readme/DESCRIPTION.rst
  7. 3
      mass_mailing_resend/readme/ROADMAP.rst
  8. 4
      mass_mailing_resend/readme/USAGE.rst
  9. 1
      mass_mailing_resend/tests/__init__.py
  10. 7
      mass_mailing_resend/tests/test_mass_mailing_resend.py

81
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 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 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 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. 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 allows to modify the state of a mass mailing from kanban view, covering the
need. 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. kanban are not allowed.
This module introduces a button to restart a mass mailing to draft state, 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 allowing you to reevaluate the sending domain or list for performing again
the mailing. the mailing.
**Table of contents**
.. contents::
:local:
Usage 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. * Click on one record that is done or create a new one and send it.
* You will see a button called "Resend". * You will see a button called "Resend".
* If you click on it, mass mailing will be set to Draft again. * 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 Known issues / Roadmap
====================== ======================
@ -49,27 +61,44 @@ Known issues / Roadmap
* Include information on the number of new recipients to be sent on the * Include information on the number of new recipients to be sent on the
resending (through `get_remaining_recipients` method). resending (through `get_remaining_recipients` method).
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 <https://github.com/OCA/social/issues/new?body=module:%20mass_mailing_resend%0Aversion:%2011.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
Do not contact contributors directly about support or help with technical issues.
Credits Credits
======= =======
Authors
~~~~~~~
* Tecnativa
Contributors Contributors
------------
~~~~~~~~~~~~
* `Tecnativa <https://www.tecnativa.com>`_:
* Tecnativa (https://www.tecnativa.com):
* Pedro M. Baeza <pedro.baeza@tecnativa.com>
* Pedro M. Baeza
Maintainer
----------
Maintainers
~~~~~~~~~~~
This module is maintained by the OCA.
.. image:: https://odoo-community.org/logo.png .. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association :alt: Odoo Community Association
:target: https://odoo-community.org :target: https://odoo-community.org
This module is maintained by the OCA.
OCA, or the Odoo Community Association, is a nonprofit organization whose OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and mission is to support the collaborative development of Odoo features and
promote its widespread use. promote its widespread use.
To contribute to this module, please visit https://odoo-community.org.
This module is part of the `OCA/social <https://github.com/OCA/social/tree/11.0/mass_mailing_resend>`_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

5
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). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{ {
"name": "Resend mass mailings", "name": "Resend mass mailings",
"version": "10.0.1.0.0",
"version": "11.0.1.0.0",
"category": "Marketing", "category": "Marketing",
"website": "https://github.com/OCA/social", "website": "https://github.com/OCA/social",
"author": "Tecnativa, " "author": "Tecnativa, "

1
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). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import mass_mailing from . import mass_mailing

1
mass_mailing_resend/models/mass_mailing.py

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright 2017 Tecnativa - Pedro M. Baeza # Copyright 2017 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

3
mass_mailing_resend/readme/CONTRIBUTORS.rst

@ -0,0 +1,3 @@
* `Tecnativa <https://www.tecnativa.com>`_:
* Pedro M. Baeza

15
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.

3
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).

4
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.

1
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). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import test_mass_mailing_resend from . import test_mass_mailing_resend

7
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). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo.tests import common from odoo.tests import common
@ -20,7 +19,9 @@ class TestMassMailingResend(common.SavepointCase):
cls.mass_mailing = cls.env['mail.mass_mailing'].create({ cls.mass_mailing = cls.env['mail.mass_mailing'].create({
'name': 'Test mass mailing', 'name': 'Test mass mailing',
'email_from': 'test@example.org', '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)], 'contact_list_ids': [(6, 0, cls.list.ids)],
'reply_to_mode': 'thread', 'reply_to_mode': 'thread',
}) })

Loading…
Cancel
Save