[MIG] mail_tracking_mailgun: Migration to v14.0
This commit is contained in:
parent
de323bdccd
commit
28d15c4d09
@ -14,13 +14,13 @@ Mail tracking for Mailgun
|
|||||||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
||||||
:alt: License: AGPL-3
|
:alt: License: AGPL-3
|
||||||
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fsocial-lightgray.png?logo=github
|
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fsocial-lightgray.png?logo=github
|
||||||
:target: https://github.com/OCA/social/tree/13.0/mail_tracking_mailgun
|
:target: https://github.com/OCA/social/tree/14.0/mail_tracking_mailgun
|
||||||
:alt: OCA/social
|
:alt: OCA/social
|
||||||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
|
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
|
||||||
:target: https://translation.odoo-community.org/projects/social-13-0/social-13-0-mail_tracking_mailgun
|
:target: https://translation.odoo-community.org/projects/social-14-0/social-14-0-mail_tracking_mailgun
|
||||||
:alt: Translate me on Weblate
|
:alt: Translate me on Weblate
|
||||||
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
|
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
|
||||||
:target: https://runbot.odoo-community.org/runbot/205/13.0
|
:target: https://runbot.odoo-community.org/runbot/205/14.0
|
||||||
:alt: Try me on Runbot
|
:alt: Try me on Runbot
|
||||||
|
|
||||||
|badge1| |badge2| |badge3| |badge4| |badge5|
|
|badge1| |badge2| |badge3| |badge4| |badge5|
|
||||||
@ -100,7 +100,7 @@ Bug Tracker
|
|||||||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/social/issues>`_.
|
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.
|
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
|
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:%20mail_tracking_mailgun%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
`feedback <https://github.com/OCA/social/issues/new?body=module:%20mail_tracking_mailgun%0Aversion:%2014.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.
|
Do not contact contributors directly about support or help with technical issues.
|
||||||
|
|
||||||
@ -123,6 +123,7 @@ Contributors
|
|||||||
* David Vidal
|
* David Vidal
|
||||||
* Rafael Blasco
|
* Rafael Blasco
|
||||||
* Ernesto Tejeda
|
* Ernesto Tejeda
|
||||||
|
* Carlos Roca
|
||||||
|
|
||||||
Other credits
|
Other credits
|
||||||
~~~~~~~~~~~~~
|
~~~~~~~~~~~~~
|
||||||
@ -145,6 +146,6 @@ 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.
|
||||||
|
|
||||||
This module is part of the `OCA/social <https://github.com/OCA/social/tree/13.0/mail_tracking_mailgun>`_ project on GitHub.
|
This module is part of the `OCA/social <https://github.com/OCA/social/tree/14.0/mail_tracking_mailgun>`_ project on GitHub.
|
||||||
|
|
||||||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
{
|
{
|
||||||
"name": "Mail tracking for Mailgun",
|
"name": "Mail tracking for Mailgun",
|
||||||
"summary": "Mail tracking and Mailgun webhooks integration",
|
"summary": "Mail tracking and Mailgun webhooks integration",
|
||||||
"version": "13.0.1.0.0",
|
"version": "14.0.1.0.0",
|
||||||
"category": "Social Network",
|
"category": "Social Network",
|
||||||
"website": "https://github.com/OCA/social",
|
"website": "https://github.com/OCA/social",
|
||||||
"author": "Tecnativa, Odoo Community Association (OCA)",
|
"author": "Tecnativa, Odoo Community Association (OCA)",
|
||||||
|
@ -161,6 +161,3 @@ msgstr ""
|
|||||||
#, python-format
|
#, python-format
|
||||||
msgid "unknown"
|
msgid "unknown"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#~ msgid "Partner"
|
|
||||||
#~ msgstr "ተባባሪ"
|
|
||||||
|
@ -162,6 +162,3 @@ msgstr ""
|
|||||||
#, python-format
|
#, python-format
|
||||||
msgid "unknown"
|
msgid "unknown"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#~ msgid "Partner"
|
|
||||||
#~ msgstr "الشريك"
|
|
||||||
|
@ -161,6 +161,3 @@ msgstr ""
|
|||||||
#, python-format
|
#, python-format
|
||||||
msgid "unknown"
|
msgid "unknown"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#~ msgid "Partner"
|
|
||||||
#~ msgstr "Партньор"
|
|
||||||
|
@ -162,6 +162,3 @@ msgstr ""
|
|||||||
#, python-format
|
#, python-format
|
||||||
msgid "unknown"
|
msgid "unknown"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#~ msgid "Partner"
|
|
||||||
#~ msgstr "Partner"
|
|
||||||
|
@ -161,6 +161,3 @@ msgstr ""
|
|||||||
#, python-format
|
#, python-format
|
||||||
msgid "unknown"
|
msgid "unknown"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#~ msgid "Partner"
|
|
||||||
#~ msgstr "Empresa"
|
|
||||||
|
@ -161,6 +161,3 @@ msgstr ""
|
|||||||
#, python-format
|
#, python-format
|
||||||
msgid "unknown"
|
msgid "unknown"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#~ msgid "Partner"
|
|
||||||
#~ msgstr "Společník"
|
|
||||||
|
@ -161,6 +161,3 @@ msgstr ""
|
|||||||
#, python-format
|
#, python-format
|
||||||
msgid "unknown"
|
msgid "unknown"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#~ msgid "Partner"
|
|
||||||
#~ msgstr "Partner"
|
|
||||||
|
@ -161,6 +161,3 @@ msgstr ""
|
|||||||
#, python-format
|
#, python-format
|
||||||
msgid "unknown"
|
msgid "unknown"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#~ msgid "Partner"
|
|
||||||
#~ msgstr "Partner"
|
|
||||||
|
@ -162,6 +162,3 @@ msgstr ""
|
|||||||
#, python-format
|
#, python-format
|
||||||
msgid "unknown"
|
msgid "unknown"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#~ msgid "Partner"
|
|
||||||
#~ msgstr "Συνεργάτης"
|
|
||||||
|
@ -162,6 +162,3 @@ msgstr ""
|
|||||||
#, python-format
|
#, python-format
|
||||||
msgid "unknown"
|
msgid "unknown"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#~ msgid "Partner"
|
|
||||||
#~ msgstr "Partner"
|
|
||||||
|
@ -173,6 +173,3 @@ msgstr ""
|
|||||||
#, python-format
|
#, python-format
|
||||||
msgid "unknown"
|
msgid "unknown"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#~ msgid "Partner"
|
|
||||||
#~ msgstr "Empresa"
|
|
||||||
|
@ -162,6 +162,3 @@ msgstr ""
|
|||||||
#, python-format
|
#, python-format
|
||||||
msgid "unknown"
|
msgid "unknown"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#~ msgid "Partner"
|
|
||||||
#~ msgstr "Empresa"
|
|
||||||
|
@ -162,6 +162,3 @@ msgstr ""
|
|||||||
#, python-format
|
#, python-format
|
||||||
msgid "unknown"
|
msgid "unknown"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#~ msgid "Partner"
|
|
||||||
#~ msgstr "Empresa"
|
|
||||||
|
@ -162,6 +162,3 @@ msgstr ""
|
|||||||
#, python-format
|
#, python-format
|
||||||
msgid "unknown"
|
msgid "unknown"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#~ msgid "Partner"
|
|
||||||
#~ msgstr "Empresa"
|
|
||||||
|
@ -162,6 +162,3 @@ msgstr ""
|
|||||||
#, python-format
|
#, python-format
|
||||||
msgid "unknown"
|
msgid "unknown"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#~ msgid "Partner"
|
|
||||||
#~ msgstr "Empresa"
|
|
||||||
|
@ -161,6 +161,3 @@ msgstr ""
|
|||||||
#, python-format
|
#, python-format
|
||||||
msgid "unknown"
|
msgid "unknown"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#~ msgid "Partner"
|
|
||||||
#~ msgstr "Partner"
|
|
||||||
|
@ -161,6 +161,3 @@ msgstr ""
|
|||||||
#, python-format
|
#, python-format
|
||||||
msgid "unknown"
|
msgid "unknown"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#~ msgid "Partner"
|
|
||||||
#~ msgstr "Kidea"
|
|
||||||
|
@ -161,6 +161,3 @@ msgstr ""
|
|||||||
#, python-format
|
#, python-format
|
||||||
msgid "unknown"
|
msgid "unknown"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#~ msgid "Partner"
|
|
||||||
#~ msgstr "Kumppani"
|
|
||||||
|
@ -166,6 +166,3 @@ msgstr ""
|
|||||||
#, python-format
|
#, python-format
|
||||||
msgid "unknown"
|
msgid "unknown"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#~ msgid "Partner"
|
|
||||||
#~ msgstr "Partenaire"
|
|
||||||
|
@ -162,6 +162,3 @@ msgstr ""
|
|||||||
#, python-format
|
#, python-format
|
||||||
msgid "unknown"
|
msgid "unknown"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#~ msgid "Partner"
|
|
||||||
#~ msgstr "Partenaire"
|
|
||||||
|
@ -162,6 +162,3 @@ msgstr ""
|
|||||||
#, python-format
|
#, python-format
|
||||||
msgid "unknown"
|
msgid "unknown"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#~ msgid "Partner"
|
|
||||||
#~ msgstr "Partenaire"
|
|
||||||
|
@ -161,6 +161,3 @@ msgstr ""
|
|||||||
#, python-format
|
#, python-format
|
||||||
msgid "unknown"
|
msgid "unknown"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#~ msgid "Partner"
|
|
||||||
#~ msgstr "Empresa"
|
|
||||||
|
@ -163,6 +163,3 @@ msgstr ""
|
|||||||
#, python-format
|
#, python-format
|
||||||
msgid "unknown"
|
msgid "unknown"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#~ msgid "Partner"
|
|
||||||
#~ msgstr "Partner"
|
|
||||||
|
@ -163,6 +163,3 @@ msgstr ""
|
|||||||
#, python-format
|
#, python-format
|
||||||
msgid "unknown"
|
msgid "unknown"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#~ msgid "Partner"
|
|
||||||
#~ msgstr "Partner"
|
|
||||||
|
@ -161,6 +161,3 @@ msgstr ""
|
|||||||
#, python-format
|
#, python-format
|
||||||
msgid "unknown"
|
msgid "unknown"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#~ msgid "Partner"
|
|
||||||
#~ msgstr "Partner"
|
|
||||||
|
@ -163,6 +163,3 @@ msgstr ""
|
|||||||
#, python-format
|
#, python-format
|
||||||
msgid "unknown"
|
msgid "unknown"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#~ msgid "Partner"
|
|
||||||
#~ msgstr "Partner"
|
|
||||||
|
@ -161,6 +161,3 @@ msgstr ""
|
|||||||
#, python-format
|
#, python-format
|
||||||
msgid "unknown"
|
msgid "unknown"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#~ msgid "Partner"
|
|
||||||
#~ msgstr "パートナ"
|
|
||||||
|
@ -162,6 +162,3 @@ msgstr ""
|
|||||||
#, python-format
|
#, python-format
|
||||||
msgid "unknown"
|
msgid "unknown"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#~ msgid "Partner"
|
|
||||||
#~ msgstr "Partneris"
|
|
||||||
|
@ -162,6 +162,3 @@ msgstr ""
|
|||||||
#, python-format
|
#, python-format
|
||||||
msgid "unknown"
|
msgid "unknown"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#~ msgid "Partner"
|
|
||||||
#~ msgstr "Partneris"
|
|
||||||
|
@ -161,6 +161,3 @@ msgstr ""
|
|||||||
#, python-format
|
#, python-format
|
||||||
msgid "unknown"
|
msgid "unknown"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#~ msgid "Partner"
|
|
||||||
#~ msgstr "Партнер"
|
|
||||||
|
@ -161,6 +161,3 @@ msgstr ""
|
|||||||
#, python-format
|
#, python-format
|
||||||
msgid "unknown"
|
msgid "unknown"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#~ msgid "Partner"
|
|
||||||
#~ msgstr "Харилцагч"
|
|
||||||
|
@ -162,6 +162,3 @@ msgstr ""
|
|||||||
#, python-format
|
#, python-format
|
||||||
msgid "unknown"
|
msgid "unknown"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#~ msgid "Partner"
|
|
||||||
#~ msgstr "Partner"
|
|
||||||
|
@ -162,6 +162,3 @@ msgstr ""
|
|||||||
#, python-format
|
#, python-format
|
||||||
msgid "unknown"
|
msgid "unknown"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#~ msgid "Partner"
|
|
||||||
#~ msgstr "Partner"
|
|
||||||
|
@ -161,6 +161,3 @@ msgstr ""
|
|||||||
#, python-format
|
#, python-format
|
||||||
msgid "unknown"
|
msgid "unknown"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#~ msgid "Partner"
|
|
||||||
#~ msgstr "Partner"
|
|
||||||
|
@ -162,6 +162,3 @@ msgstr ""
|
|||||||
#, python-format
|
#, python-format
|
||||||
msgid "unknown"
|
msgid "unknown"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#~ msgid "Partner"
|
|
||||||
#~ msgstr "Relatie"
|
|
||||||
|
@ -163,6 +163,3 @@ msgstr ""
|
|||||||
#, python-format
|
#, python-format
|
||||||
msgid "unknown"
|
msgid "unknown"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#~ msgid "Partner"
|
|
||||||
#~ msgstr "Partner"
|
|
||||||
|
@ -163,6 +163,3 @@ msgstr ""
|
|||||||
#, python-format
|
#, python-format
|
||||||
msgid "unknown"
|
msgid "unknown"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#~ msgid "Partner"
|
|
||||||
#~ msgstr "Partner"
|
|
||||||
|
@ -175,6 +175,3 @@ msgstr ""
|
|||||||
#, python-format
|
#, python-format
|
||||||
msgid "unknown"
|
msgid "unknown"
|
||||||
msgstr "desconhecido"
|
msgstr "desconhecido"
|
||||||
|
|
||||||
#~ msgid "Partner"
|
|
||||||
#~ msgstr "Entidade"
|
|
||||||
|
@ -162,6 +162,3 @@ msgstr ""
|
|||||||
#, python-format
|
#, python-format
|
||||||
msgid "unknown"
|
msgid "unknown"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#~ msgid "Partner"
|
|
||||||
#~ msgstr "Parceiro"
|
|
||||||
|
@ -162,6 +162,3 @@ msgstr ""
|
|||||||
#, python-format
|
#, python-format
|
||||||
msgid "unknown"
|
msgid "unknown"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#~ msgid "Partner"
|
|
||||||
#~ msgstr "Parceiro"
|
|
||||||
|
@ -162,6 +162,3 @@ msgstr ""
|
|||||||
#, python-format
|
#, python-format
|
||||||
msgid "unknown"
|
msgid "unknown"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#~ msgid "Partner"
|
|
||||||
#~ msgstr "Partener"
|
|
||||||
|
@ -163,6 +163,3 @@ msgstr ""
|
|||||||
#, python-format
|
#, python-format
|
||||||
msgid "unknown"
|
msgid "unknown"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#~ msgid "Partner"
|
|
||||||
#~ msgstr "Контрагент"
|
|
||||||
|
@ -161,6 +161,3 @@ msgstr ""
|
|||||||
#, python-format
|
#, python-format
|
||||||
msgid "unknown"
|
msgid "unknown"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#~ msgid "Partner"
|
|
||||||
#~ msgstr "Partner"
|
|
||||||
|
@ -162,6 +162,3 @@ msgstr ""
|
|||||||
#, python-format
|
#, python-format
|
||||||
msgid "unknown"
|
msgid "unknown"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#~ msgid "Partner"
|
|
||||||
#~ msgstr "Partner"
|
|
||||||
|
@ -163,6 +163,3 @@ msgstr ""
|
|||||||
#, python-format
|
#, python-format
|
||||||
msgid "unknown"
|
msgid "unknown"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#~ msgid "Partner"
|
|
||||||
#~ msgstr "Partner"
|
|
||||||
|
@ -161,6 +161,3 @@ msgstr ""
|
|||||||
#, python-format
|
#, python-format
|
||||||
msgid "unknown"
|
msgid "unknown"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#~ msgid "Partner"
|
|
||||||
#~ msgstr "Företag"
|
|
||||||
|
@ -161,6 +161,3 @@ msgstr ""
|
|||||||
#, python-format
|
#, python-format
|
||||||
msgid "unknown"
|
msgid "unknown"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#~ msgid "Partner"
|
|
||||||
#~ msgstr "พาร์ทเนอร์"
|
|
||||||
|
@ -161,6 +161,3 @@ msgstr ""
|
|||||||
#, python-format
|
#, python-format
|
||||||
msgid "unknown"
|
msgid "unknown"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#~ msgid "Partner"
|
|
||||||
#~ msgstr "İş Ortağı"
|
|
||||||
|
@ -162,6 +162,3 @@ msgstr ""
|
|||||||
#, python-format
|
#, python-format
|
||||||
msgid "unknown"
|
msgid "unknown"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#~ msgid "Partner"
|
|
||||||
#~ msgstr "Ortak"
|
|
||||||
|
@ -161,6 +161,3 @@ msgstr ""
|
|||||||
#, python-format
|
#, python-format
|
||||||
msgid "unknown"
|
msgid "unknown"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#~ msgid "Partner"
|
|
||||||
#~ msgstr "Đối tác"
|
|
||||||
|
@ -162,6 +162,3 @@ msgstr ""
|
|||||||
#, python-format
|
#, python-format
|
||||||
msgid "unknown"
|
msgid "unknown"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#~ msgid "Partner"
|
|
||||||
#~ msgstr "业务伙伴"
|
|
||||||
|
@ -162,6 +162,3 @@ msgstr ""
|
|||||||
#, python-format
|
#, python-format
|
||||||
msgid "unknown"
|
msgid "unknown"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#~ msgid "Partner"
|
|
||||||
#~ msgstr "夥伴"
|
|
||||||
|
@ -10,9 +10,7 @@ class IrMailServer(models.Model):
|
|||||||
_inherit = "ir.mail_server"
|
_inherit = "ir.mail_server"
|
||||||
|
|
||||||
def _tracking_headers_add(self, tracking_email_id, headers):
|
def _tracking_headers_add(self, tracking_email_id, headers):
|
||||||
headers = super(IrMailServer, self)._tracking_headers_add(
|
headers = super()._tracking_headers_add(tracking_email_id, headers)
|
||||||
tracking_email_id, headers
|
|
||||||
)
|
|
||||||
headers = headers or {}
|
headers = headers or {}
|
||||||
metadata = {
|
metadata = {
|
||||||
"odoo_db": self.env.cr.dbname,
|
"odoo_db": self.env.cr.dbname,
|
||||||
|
@ -198,9 +198,7 @@ class MailTrackingEmail(models.Model):
|
|||||||
|
|
||||||
@api.model
|
@api.model
|
||||||
def event_process(self, request, post, metadata, event_type=None):
|
def event_process(self, request, post, metadata, event_type=None):
|
||||||
res = super(MailTrackingEmail, self).event_process(
|
res = super().event_process(request, post, metadata, event_type=event_type)
|
||||||
request, post, metadata, event_type=event_type
|
|
||||||
)
|
|
||||||
if res == "NONE" and self._event_is_from_mailgun(post):
|
if res == "NONE" and self._event_is_from_mailgun(post):
|
||||||
if not self._mailgun_signature_verify(post):
|
if not self._mailgun_signature_verify(post):
|
||||||
res = "ERROR: Signature"
|
res = "ERROR: Signature"
|
||||||
|
@ -10,8 +10,6 @@ class MailTrackingEvent(models.Model):
|
|||||||
mailgun_id = fields.Char(string="Mailgun Event ID", copy="False", readonly=True)
|
mailgun_id = fields.Char(string="Mailgun Event ID", copy="False", readonly=True)
|
||||||
|
|
||||||
def _process_data(self, tracking_email, metadata, event_type, state):
|
def _process_data(self, tracking_email, metadata, event_type, state):
|
||||||
res = super(MailTrackingEvent, self)._process_data(
|
res = super()._process_data(tracking_email, metadata, event_type, state)
|
||||||
tracking_email, metadata, event_type, state
|
|
||||||
)
|
|
||||||
res.update({"mailgun_id": metadata.get("mailgun_id", False)})
|
res.update({"mailgun_id": metadata.get("mailgun_id", False)})
|
||||||
return res
|
return res
|
||||||
|
@ -14,9 +14,7 @@ class ResPartner(models.Model):
|
|||||||
_inherit = "res.partner"
|
_inherit = "res.partner"
|
||||||
|
|
||||||
def email_bounced_set(self, tracking_emails, reason, event=None):
|
def email_bounced_set(self, tracking_emails, reason, event=None):
|
||||||
res = super(ResPartner, self).email_bounced_set(
|
res = super().email_bounced_set(tracking_emails, reason, event=event)
|
||||||
tracking_emails, reason, event=event
|
|
||||||
)
|
|
||||||
self._email_bounced_set(reason, event)
|
self._email_bounced_set(reason, event)
|
||||||
return res
|
return res
|
||||||
|
|
||||||
@ -186,11 +184,11 @@ class ResPartner(models.Model):
|
|||||||
"mailgun.auto_check_partner_email"
|
"mailgun.auto_check_partner_email"
|
||||||
):
|
):
|
||||||
self._autocheck_partner_email()
|
self._autocheck_partner_email()
|
||||||
return super(ResPartner, self).create(vals)
|
return super().create(vals)
|
||||||
|
|
||||||
def write(self, vals):
|
def write(self, vals):
|
||||||
if "email" in vals and self.env["ir.config_parameter"].sudo().get_param(
|
if "email" in vals and self.env["ir.config_parameter"].sudo().get_param(
|
||||||
"mailgun.auto_check_partner_email"
|
"mailgun.auto_check_partner_email"
|
||||||
):
|
):
|
||||||
self._autocheck_partner_email()
|
self._autocheck_partner_email()
|
||||||
return super(ResPartner, self).write(vals)
|
return super().write(vals)
|
||||||
|
@ -6,3 +6,4 @@
|
|||||||
* David Vidal
|
* David Vidal
|
||||||
* Rafael Blasco
|
* Rafael Blasco
|
||||||
* Ernesto Tejeda
|
* Ernesto Tejeda
|
||||||
|
* Carlos Roca
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
<meta name="generator" content="Docutils 0.15.1: http://docutils.sourceforge.net/" />
|
<meta name="generator" content="Docutils: http://docutils.sourceforge.net/" />
|
||||||
<title>Mail tracking for Mailgun</title>
|
<title>Mail tracking for Mailgun</title>
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
|
|
||||||
@ -367,7 +367,7 @@ ul.auto-toc {
|
|||||||
!! This file is generated by oca-gen-addon-readme !!
|
!! This file is generated by oca-gen-addon-readme !!
|
||||||
!! changes will be overwritten. !!
|
!! changes will be overwritten. !!
|
||||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||||||
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/social/tree/13.0/mail_tracking_mailgun"><img alt="OCA/social" src="https://img.shields.io/badge/github-OCA%2Fsocial-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/social-13-0/social-13-0-mail_tracking_mailgun"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/205/13.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
|
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/social/tree/14.0/mail_tracking_mailgun"><img alt="OCA/social" src="https://img.shields.io/badge/github-OCA%2Fsocial-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/social-14-0/social-14-0-mail_tracking_mailgun"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/205/14.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
|
||||||
<p>This module integrates mail_tracking events with Mailgun webhooks.</p>
|
<p>This module integrates mail_tracking events with Mailgun webhooks.</p>
|
||||||
<p>Mailgun (<a class="reference external" href="https://www.mailgun.com/">https://www.mailgun.com/</a>) is a service that provides an e-mail
|
<p>Mailgun (<a class="reference external" href="https://www.mailgun.com/">https://www.mailgun.com/</a>) is a service that provides an e-mail
|
||||||
sending infrastructure through an SMTP server or via API. You can also
|
sending infrastructure through an SMTP server or via API. You can also
|
||||||
@ -451,7 +451,7 @@ short lifespan, so after 24h they won’t be recoverable.</p>
|
|||||||
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/social/issues">GitHub Issues</a>.
|
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/social/issues">GitHub Issues</a>.
|
||||||
In case of trouble, please check there if your issue has already been reported.
|
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
|
If you spotted it first, help us smashing it by providing a detailed and welcomed
|
||||||
<a class="reference external" href="https://github.com/OCA/social/issues/new?body=module:%20mail_tracking_mailgun%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
<a class="reference external" href="https://github.com/OCA/social/issues/new?body=module:%20mail_tracking_mailgun%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
||||||
<p>Do not contact contributors directly about support or help with technical issues.</p>
|
<p>Do not contact contributors directly about support or help with technical issues.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="credits">
|
<div class="section" id="credits">
|
||||||
@ -472,6 +472,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
|
|||||||
<li>David Vidal</li>
|
<li>David Vidal</li>
|
||||||
<li>Rafael Blasco</li>
|
<li>Rafael Blasco</li>
|
||||||
<li>Ernesto Tejeda</li>
|
<li>Ernesto Tejeda</li>
|
||||||
|
<li>Carlos Roca</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
@ -492,7 +493,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
|
|||||||
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
|
<p>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.</p>
|
promote its widespread use.</p>
|
||||||
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/social/tree/13.0/mail_tracking_mailgun">OCA/social</a> project on GitHub.</p>
|
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/social/tree/14.0/mail_tracking_mailgun">OCA/social</a> project on GitHub.</p>
|
||||||
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
|
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -29,7 +29,7 @@ class TestMailgun(TransactionCase):
|
|||||||
return mail, tracking_email
|
return mail, tracking_email
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
super(TestMailgun, self).setUp()
|
super().setUp()
|
||||||
self.recipient = "to@example.com"
|
self.recipient = "to@example.com"
|
||||||
self.mail, self.tracking_email = self.mail_send()
|
self.mail, self.tracking_email = self.mail_send()
|
||||||
self.api_key = "key-12345678901234567890123456789012"
|
self.api_key = "key-12345678901234567890123456789012"
|
||||||
|
Loading…
Reference in New Issue
Block a user