[IMP] mail_tracking_mailgun: mass mailing manual tracking

Mass mailing are tracked from mail.trace as the don't store a message in
the db. In order to gather the message_id and be able to do manual
checks to mailgun, that's the table where we should get the message id.

TT40816
pull/1247/head
David 2023-01-12 12:40:07 +01:00
parent a6e05c28ea
commit ff496cf2b4
56 changed files with 9 additions and 325 deletions

View File

@ -6,7 +6,7 @@
{
"name": "Mail tracking for Mailgun",
"summary": "Mail tracking and Mailgun webhooks integration",
"version": "15.0.1.0.0",
"version": "15.0.1.1.0",
"category": "Social Network",
"website": "https://github.com/OCA/social",
"author": "Tecnativa, Odoo Community Association (OCA)",

View File

@ -275,12 +275,6 @@ msgstr ""
msgid "There is no Mailgun API key!"
msgstr ""
#. module: mail_tracking_mailgun
#: code:addons/mail_tracking_mailgun/models/mail_tracking_email.py:0
#, python-format
msgid "There is no tracked message!"
msgstr ""
#. module: mail_tracking_mailgun
#: model_terms:ir.ui.view,arch_db:mail_tracking_mailgun.res_config_settings_view_form
msgid ""

View File

@ -276,12 +276,6 @@ msgstr ""
msgid "There is no Mailgun API key!"
msgstr ""
#. module: mail_tracking_mailgun
#: code:addons/mail_tracking_mailgun/models/mail_tracking_email.py:0
#, python-format
msgid "There is no tracked message!"
msgstr ""
#. module: mail_tracking_mailgun
#: model_terms:ir.ui.view,arch_db:mail_tracking_mailgun.res_config_settings_view_form
msgid ""

View File

@ -275,12 +275,6 @@ msgstr ""
msgid "There is no Mailgun API key!"
msgstr ""
#. module: mail_tracking_mailgun
#: code:addons/mail_tracking_mailgun/models/mail_tracking_email.py:0
#, python-format
msgid "There is no tracked message!"
msgstr ""
#. module: mail_tracking_mailgun
#: model_terms:ir.ui.view,arch_db:mail_tracking_mailgun.res_config_settings_view_form
msgid ""

View File

@ -276,12 +276,6 @@ msgstr ""
msgid "There is no Mailgun API key!"
msgstr ""
#. module: mail_tracking_mailgun
#: code:addons/mail_tracking_mailgun/models/mail_tracking_email.py:0
#, python-format
msgid "There is no tracked message!"
msgstr ""
#. module: mail_tracking_mailgun
#: model_terms:ir.ui.view,arch_db:mail_tracking_mailgun.res_config_settings_view_form
msgid ""

View File

@ -275,12 +275,6 @@ msgstr ""
msgid "There is no Mailgun API key!"
msgstr ""
#. module: mail_tracking_mailgun
#: code:addons/mail_tracking_mailgun/models/mail_tracking_email.py:0
#, python-format
msgid "There is no tracked message!"
msgstr ""
#. module: mail_tracking_mailgun
#: model_terms:ir.ui.view,arch_db:mail_tracking_mailgun.res_config_settings_view_form
msgid ""

View File

@ -275,12 +275,6 @@ msgstr ""
msgid "There is no Mailgun API key!"
msgstr ""
#. module: mail_tracking_mailgun
#: code:addons/mail_tracking_mailgun/models/mail_tracking_email.py:0
#, python-format
msgid "There is no tracked message!"
msgstr ""
#. module: mail_tracking_mailgun
#: model_terms:ir.ui.view,arch_db:mail_tracking_mailgun.res_config_settings_view_form
msgid ""

View File

@ -275,12 +275,6 @@ msgstr ""
msgid "There is no Mailgun API key!"
msgstr ""
#. module: mail_tracking_mailgun
#: code:addons/mail_tracking_mailgun/models/mail_tracking_email.py:0
#, python-format
msgid "There is no tracked message!"
msgstr ""
#. module: mail_tracking_mailgun
#: model_terms:ir.ui.view,arch_db:mail_tracking_mailgun.res_config_settings_view_form
msgid ""

View File

@ -275,12 +275,6 @@ msgstr ""
msgid "There is no Mailgun API key!"
msgstr ""
#. module: mail_tracking_mailgun
#: code:addons/mail_tracking_mailgun/models/mail_tracking_email.py:0
#, python-format
msgid "There is no tracked message!"
msgstr ""
#. module: mail_tracking_mailgun
#: model_terms:ir.ui.view,arch_db:mail_tracking_mailgun.res_config_settings_view_form
msgid ""

View File

@ -276,12 +276,6 @@ msgstr ""
msgid "There is no Mailgun API key!"
msgstr ""
#. module: mail_tracking_mailgun
#: code:addons/mail_tracking_mailgun/models/mail_tracking_email.py:0
#, python-format
msgid "There is no tracked message!"
msgstr ""
#. module: mail_tracking_mailgun
#: model_terms:ir.ui.view,arch_db:mail_tracking_mailgun.res_config_settings_view_form
msgid ""

View File

@ -276,12 +276,6 @@ msgstr ""
msgid "There is no Mailgun API key!"
msgstr ""
#. module: mail_tracking_mailgun
#: code:addons/mail_tracking_mailgun/models/mail_tracking_email.py:0
#, python-format
msgid "There is no tracked message!"
msgstr ""
#. module: mail_tracking_mailgun
#: model_terms:ir.ui.view,arch_db:mail_tracking_mailgun.res_config_settings_view_form
msgid ""

View File

@ -282,12 +282,6 @@ msgstr "Marcar como rebotado"
msgid "There is no Mailgun API key!"
msgstr "¡No hay clave de API de Mailgun!"
#. module: mail_tracking_mailgun
#: code:addons/mail_tracking_mailgun/models/mail_tracking_email.py:0
#, python-format
msgid "There is no tracked message!"
msgstr ""
#. module: mail_tracking_mailgun
#: model_terms:ir.ui.view,arch_db:mail_tracking_mailgun.res_config_settings_view_form
msgid ""

View File

@ -276,12 +276,6 @@ msgstr ""
msgid "There is no Mailgun API key!"
msgstr ""
#. module: mail_tracking_mailgun
#: code:addons/mail_tracking_mailgun/models/mail_tracking_email.py:0
#, python-format
msgid "There is no tracked message!"
msgstr ""
#. module: mail_tracking_mailgun
#: model_terms:ir.ui.view,arch_db:mail_tracking_mailgun.res_config_settings_view_form
msgid ""

View File

@ -276,12 +276,6 @@ msgstr ""
msgid "There is no Mailgun API key!"
msgstr ""
#. module: mail_tracking_mailgun
#: code:addons/mail_tracking_mailgun/models/mail_tracking_email.py:0
#, python-format
msgid "There is no tracked message!"
msgstr ""
#. module: mail_tracking_mailgun
#: model_terms:ir.ui.view,arch_db:mail_tracking_mailgun.res_config_settings_view_form
msgid ""

View File

@ -276,12 +276,6 @@ msgstr ""
msgid "There is no Mailgun API key!"
msgstr ""
#. module: mail_tracking_mailgun
#: code:addons/mail_tracking_mailgun/models/mail_tracking_email.py:0
#, python-format
msgid "There is no tracked message!"
msgstr ""
#. module: mail_tracking_mailgun
#: model_terms:ir.ui.view,arch_db:mail_tracking_mailgun.res_config_settings_view_form
msgid ""

View File

@ -276,12 +276,6 @@ msgstr ""
msgid "There is no Mailgun API key!"
msgstr ""
#. module: mail_tracking_mailgun
#: code:addons/mail_tracking_mailgun/models/mail_tracking_email.py:0
#, python-format
msgid "There is no tracked message!"
msgstr ""
#. module: mail_tracking_mailgun
#: model_terms:ir.ui.view,arch_db:mail_tracking_mailgun.res_config_settings_view_form
msgid ""

View File

@ -275,12 +275,6 @@ msgstr ""
msgid "There is no Mailgun API key!"
msgstr ""
#. module: mail_tracking_mailgun
#: code:addons/mail_tracking_mailgun/models/mail_tracking_email.py:0
#, python-format
msgid "There is no tracked message!"
msgstr ""
#. module: mail_tracking_mailgun
#: model_terms:ir.ui.view,arch_db:mail_tracking_mailgun.res_config_settings_view_form
msgid ""

View File

@ -275,12 +275,6 @@ msgstr ""
msgid "There is no Mailgun API key!"
msgstr ""
#. module: mail_tracking_mailgun
#: code:addons/mail_tracking_mailgun/models/mail_tracking_email.py:0
#, python-format
msgid "There is no tracked message!"
msgstr ""
#. module: mail_tracking_mailgun
#: model_terms:ir.ui.view,arch_db:mail_tracking_mailgun.res_config_settings_view_form
msgid ""

View File

@ -275,12 +275,6 @@ msgstr ""
msgid "There is no Mailgun API key!"
msgstr ""
#. module: mail_tracking_mailgun
#: code:addons/mail_tracking_mailgun/models/mail_tracking_email.py:0
#, python-format
msgid "There is no tracked message!"
msgstr ""
#. module: mail_tracking_mailgun
#: model_terms:ir.ui.view,arch_db:mail_tracking_mailgun.res_config_settings_view_form
msgid ""

View File

@ -280,12 +280,6 @@ msgstr ""
msgid "There is no Mailgun API key!"
msgstr ""
#. module: mail_tracking_mailgun
#: code:addons/mail_tracking_mailgun/models/mail_tracking_email.py:0
#, python-format
msgid "There is no tracked message!"
msgstr ""
#. module: mail_tracking_mailgun
#: model_terms:ir.ui.view,arch_db:mail_tracking_mailgun.res_config_settings_view_form
msgid ""

View File

@ -276,12 +276,6 @@ msgstr ""
msgid "There is no Mailgun API key!"
msgstr ""
#. module: mail_tracking_mailgun
#: code:addons/mail_tracking_mailgun/models/mail_tracking_email.py:0
#, python-format
msgid "There is no tracked message!"
msgstr ""
#. module: mail_tracking_mailgun
#: model_terms:ir.ui.view,arch_db:mail_tracking_mailgun.res_config_settings_view_form
msgid ""

View File

@ -276,12 +276,6 @@ msgstr ""
msgid "There is no Mailgun API key!"
msgstr ""
#. module: mail_tracking_mailgun
#: code:addons/mail_tracking_mailgun/models/mail_tracking_email.py:0
#, python-format
msgid "There is no tracked message!"
msgstr ""
#. module: mail_tracking_mailgun
#: model_terms:ir.ui.view,arch_db:mail_tracking_mailgun.res_config_settings_view_form
msgid ""

View File

@ -275,12 +275,6 @@ msgstr ""
msgid "There is no Mailgun API key!"
msgstr ""
#. module: mail_tracking_mailgun
#: code:addons/mail_tracking_mailgun/models/mail_tracking_email.py:0
#, python-format
msgid "There is no tracked message!"
msgstr ""
#. module: mail_tracking_mailgun
#: model_terms:ir.ui.view,arch_db:mail_tracking_mailgun.res_config_settings_view_form
msgid ""

View File

@ -277,12 +277,6 @@ msgstr ""
msgid "There is no Mailgun API key!"
msgstr ""
#. module: mail_tracking_mailgun
#: code:addons/mail_tracking_mailgun/models/mail_tracking_email.py:0
#, python-format
msgid "There is no tracked message!"
msgstr ""
#. module: mail_tracking_mailgun
#: model_terms:ir.ui.view,arch_db:mail_tracking_mailgun.res_config_settings_view_form
msgid ""

View File

@ -277,12 +277,6 @@ msgstr ""
msgid "There is no Mailgun API key!"
msgstr ""
#. module: mail_tracking_mailgun
#: code:addons/mail_tracking_mailgun/models/mail_tracking_email.py:0
#, python-format
msgid "There is no tracked message!"
msgstr ""
#. module: mail_tracking_mailgun
#: model_terms:ir.ui.view,arch_db:mail_tracking_mailgun.res_config_settings_view_form
msgid ""

View File

@ -275,12 +275,6 @@ msgstr ""
msgid "There is no Mailgun API key!"
msgstr ""
#. module: mail_tracking_mailgun
#: code:addons/mail_tracking_mailgun/models/mail_tracking_email.py:0
#, python-format
msgid "There is no tracked message!"
msgstr ""
#. module: mail_tracking_mailgun
#: model_terms:ir.ui.view,arch_db:mail_tracking_mailgun.res_config_settings_view_form
msgid ""

View File

@ -277,12 +277,6 @@ msgstr ""
msgid "There is no Mailgun API key!"
msgstr ""
#. module: mail_tracking_mailgun
#: code:addons/mail_tracking_mailgun/models/mail_tracking_email.py:0
#, python-format
msgid "There is no tracked message!"
msgstr ""
#. module: mail_tracking_mailgun
#: model_terms:ir.ui.view,arch_db:mail_tracking_mailgun.res_config_settings_view_form
msgid ""

View File

@ -275,12 +275,6 @@ msgstr ""
msgid "There is no Mailgun API key!"
msgstr ""
#. module: mail_tracking_mailgun
#: code:addons/mail_tracking_mailgun/models/mail_tracking_email.py:0
#, python-format
msgid "There is no tracked message!"
msgstr ""
#. module: mail_tracking_mailgun
#: model_terms:ir.ui.view,arch_db:mail_tracking_mailgun.res_config_settings_view_form
msgid ""

View File

@ -276,12 +276,6 @@ msgstr ""
msgid "There is no Mailgun API key!"
msgstr ""
#. module: mail_tracking_mailgun
#: code:addons/mail_tracking_mailgun/models/mail_tracking_email.py:0
#, python-format
msgid "There is no tracked message!"
msgstr ""
#. module: mail_tracking_mailgun
#: model_terms:ir.ui.view,arch_db:mail_tracking_mailgun.res_config_settings_view_form
msgid ""

View File

@ -276,12 +276,6 @@ msgstr ""
msgid "There is no Mailgun API key!"
msgstr ""
#. module: mail_tracking_mailgun
#: code:addons/mail_tracking_mailgun/models/mail_tracking_email.py:0
#, python-format
msgid "There is no tracked message!"
msgstr ""
#. module: mail_tracking_mailgun
#: model_terms:ir.ui.view,arch_db:mail_tracking_mailgun.res_config_settings_view_form
msgid ""

View File

@ -270,12 +270,6 @@ msgstr ""
msgid "There is no Mailgun API key!"
msgstr ""
#. module: mail_tracking_mailgun
#: code:addons/mail_tracking_mailgun/models/mail_tracking_email.py:0
#, python-format
msgid "There is no tracked message!"
msgstr ""
#. module: mail_tracking_mailgun
#: model_terms:ir.ui.view,arch_db:mail_tracking_mailgun.res_config_settings_view_form
msgid ""

View File

@ -275,12 +275,6 @@ msgstr ""
msgid "There is no Mailgun API key!"
msgstr ""
#. module: mail_tracking_mailgun
#: code:addons/mail_tracking_mailgun/models/mail_tracking_email.py:0
#, python-format
msgid "There is no tracked message!"
msgstr ""
#. module: mail_tracking_mailgun
#: model_terms:ir.ui.view,arch_db:mail_tracking_mailgun.res_config_settings_view_form
msgid ""

View File

@ -275,12 +275,6 @@ msgstr ""
msgid "There is no Mailgun API key!"
msgstr ""
#. module: mail_tracking_mailgun
#: code:addons/mail_tracking_mailgun/models/mail_tracking_email.py:0
#, python-format
msgid "There is no tracked message!"
msgstr ""
#. module: mail_tracking_mailgun
#: model_terms:ir.ui.view,arch_db:mail_tracking_mailgun.res_config_settings_view_form
msgid ""

View File

@ -276,12 +276,6 @@ msgstr ""
msgid "There is no Mailgun API key!"
msgstr ""
#. module: mail_tracking_mailgun
#: code:addons/mail_tracking_mailgun/models/mail_tracking_email.py:0
#, python-format
msgid "There is no tracked message!"
msgstr ""
#. module: mail_tracking_mailgun
#: model_terms:ir.ui.view,arch_db:mail_tracking_mailgun.res_config_settings_view_form
msgid ""

View File

@ -276,12 +276,6 @@ msgstr ""
msgid "There is no Mailgun API key!"
msgstr ""
#. module: mail_tracking_mailgun
#: code:addons/mail_tracking_mailgun/models/mail_tracking_email.py:0
#, python-format
msgid "There is no tracked message!"
msgstr ""
#. module: mail_tracking_mailgun
#: model_terms:ir.ui.view,arch_db:mail_tracking_mailgun.res_config_settings_view_form
msgid ""

View File

@ -275,12 +275,6 @@ msgstr ""
msgid "There is no Mailgun API key!"
msgstr ""
#. module: mail_tracking_mailgun
#: code:addons/mail_tracking_mailgun/models/mail_tracking_email.py:0
#, python-format
msgid "There is no tracked message!"
msgstr ""
#. module: mail_tracking_mailgun
#: model_terms:ir.ui.view,arch_db:mail_tracking_mailgun.res_config_settings_view_form
msgid ""

View File

@ -276,12 +276,6 @@ msgstr ""
msgid "There is no Mailgun API key!"
msgstr ""
#. module: mail_tracking_mailgun
#: code:addons/mail_tracking_mailgun/models/mail_tracking_email.py:0
#, python-format
msgid "There is no tracked message!"
msgstr ""
#. module: mail_tracking_mailgun
#: model_terms:ir.ui.view,arch_db:mail_tracking_mailgun.res_config_settings_view_form
msgid ""

View File

@ -277,12 +277,6 @@ msgstr ""
msgid "There is no Mailgun API key!"
msgstr ""
#. module: mail_tracking_mailgun
#: code:addons/mail_tracking_mailgun/models/mail_tracking_email.py:0
#, python-format
msgid "There is no tracked message!"
msgstr ""
#. module: mail_tracking_mailgun
#: model_terms:ir.ui.view,arch_db:mail_tracking_mailgun.res_config_settings_view_form
msgid ""

View File

@ -277,12 +277,6 @@ msgstr ""
msgid "There is no Mailgun API key!"
msgstr ""
#. module: mail_tracking_mailgun
#: code:addons/mail_tracking_mailgun/models/mail_tracking_email.py:0
#, python-format
msgid "There is no tracked message!"
msgstr ""
#. module: mail_tracking_mailgun
#: model_terms:ir.ui.view,arch_db:mail_tracking_mailgun.res_config_settings_view_form
msgid ""

View File

@ -284,12 +284,6 @@ msgstr "Marcar como Devolvido"
msgid "There is no Mailgun API key!"
msgstr "Não há chave de API do Mailgun!"
#. module: mail_tracking_mailgun
#: code:addons/mail_tracking_mailgun/models/mail_tracking_email.py:0
#, python-format
msgid "There is no tracked message!"
msgstr "Não há mensagem rastreada!"
#. module: mail_tracking_mailgun
#: model_terms:ir.ui.view,arch_db:mail_tracking_mailgun.res_config_settings_view_form
msgid ""
@ -370,6 +364,10 @@ msgstr ""
msgid "unknown"
msgstr "desconhecido"
#, python-format
#~ msgid "There is no tracked message!"
#~ msgstr "Não há mensagem rastreada!"
#, python-format
#~ msgid ""
#~ "Email has been bounced: %s\n"

View File

@ -276,12 +276,6 @@ msgstr ""
msgid "There is no Mailgun API key!"
msgstr ""
#. module: mail_tracking_mailgun
#: code:addons/mail_tracking_mailgun/models/mail_tracking_email.py:0
#, python-format
msgid "There is no tracked message!"
msgstr ""
#. module: mail_tracking_mailgun
#: model_terms:ir.ui.view,arch_db:mail_tracking_mailgun.res_config_settings_view_form
msgid ""

View File

@ -276,12 +276,6 @@ msgstr ""
msgid "There is no Mailgun API key!"
msgstr ""
#. module: mail_tracking_mailgun
#: code:addons/mail_tracking_mailgun/models/mail_tracking_email.py:0
#, python-format
msgid "There is no tracked message!"
msgstr ""
#. module: mail_tracking_mailgun
#: model_terms:ir.ui.view,arch_db:mail_tracking_mailgun.res_config_settings_view_form
msgid ""

View File

@ -276,12 +276,6 @@ msgstr ""
msgid "There is no Mailgun API key!"
msgstr ""
#. module: mail_tracking_mailgun
#: code:addons/mail_tracking_mailgun/models/mail_tracking_email.py:0
#, python-format
msgid "There is no tracked message!"
msgstr ""
#. module: mail_tracking_mailgun
#: model_terms:ir.ui.view,arch_db:mail_tracking_mailgun.res_config_settings_view_form
msgid ""

View File

@ -277,12 +277,6 @@ msgstr ""
msgid "There is no Mailgun API key!"
msgstr ""
#. module: mail_tracking_mailgun
#: code:addons/mail_tracking_mailgun/models/mail_tracking_email.py:0
#, python-format
msgid "There is no tracked message!"
msgstr ""
#. module: mail_tracking_mailgun
#: model_terms:ir.ui.view,arch_db:mail_tracking_mailgun.res_config_settings_view_form
msgid ""

View File

@ -275,12 +275,6 @@ msgstr ""
msgid "There is no Mailgun API key!"
msgstr ""
#. module: mail_tracking_mailgun
#: code:addons/mail_tracking_mailgun/models/mail_tracking_email.py:0
#, python-format
msgid "There is no tracked message!"
msgstr ""
#. module: mail_tracking_mailgun
#: model_terms:ir.ui.view,arch_db:mail_tracking_mailgun.res_config_settings_view_form
msgid ""

View File

@ -276,12 +276,6 @@ msgstr ""
msgid "There is no Mailgun API key!"
msgstr ""
#. module: mail_tracking_mailgun
#: code:addons/mail_tracking_mailgun/models/mail_tracking_email.py:0
#, python-format
msgid "There is no tracked message!"
msgstr ""
#. module: mail_tracking_mailgun
#: model_terms:ir.ui.view,arch_db:mail_tracking_mailgun.res_config_settings_view_form
msgid ""

View File

@ -277,12 +277,6 @@ msgstr ""
msgid "There is no Mailgun API key!"
msgstr ""
#. module: mail_tracking_mailgun
#: code:addons/mail_tracking_mailgun/models/mail_tracking_email.py:0
#, python-format
msgid "There is no tracked message!"
msgstr ""
#. module: mail_tracking_mailgun
#: model_terms:ir.ui.view,arch_db:mail_tracking_mailgun.res_config_settings_view_form
msgid ""

View File

@ -275,12 +275,6 @@ msgstr ""
msgid "There is no Mailgun API key!"
msgstr ""
#. module: mail_tracking_mailgun
#: code:addons/mail_tracking_mailgun/models/mail_tracking_email.py:0
#, python-format
msgid "There is no tracked message!"
msgstr ""
#. module: mail_tracking_mailgun
#: model_terms:ir.ui.view,arch_db:mail_tracking_mailgun.res_config_settings_view_form
msgid ""

View File

@ -275,12 +275,6 @@ msgstr ""
msgid "There is no Mailgun API key!"
msgstr ""
#. module: mail_tracking_mailgun
#: code:addons/mail_tracking_mailgun/models/mail_tracking_email.py:0
#, python-format
msgid "There is no tracked message!"
msgstr ""
#. module: mail_tracking_mailgun
#: model_terms:ir.ui.view,arch_db:mail_tracking_mailgun.res_config_settings_view_form
msgid ""

View File

@ -275,12 +275,6 @@ msgstr ""
msgid "There is no Mailgun API key!"
msgstr ""
#. module: mail_tracking_mailgun
#: code:addons/mail_tracking_mailgun/models/mail_tracking_email.py:0
#, python-format
msgid "There is no tracked message!"
msgstr ""
#. module: mail_tracking_mailgun
#: model_terms:ir.ui.view,arch_db:mail_tracking_mailgun.res_config_settings_view_form
msgid ""

View File

@ -276,12 +276,6 @@ msgstr ""
msgid "There is no Mailgun API key!"
msgstr ""
#. module: mail_tracking_mailgun
#: code:addons/mail_tracking_mailgun/models/mail_tracking_email.py:0
#, python-format
msgid "There is no tracked message!"
msgstr ""
#. module: mail_tracking_mailgun
#: model_terms:ir.ui.view,arch_db:mail_tracking_mailgun.res_config_settings_view_form
msgid ""

View File

@ -275,12 +275,6 @@ msgstr ""
msgid "There is no Mailgun API key!"
msgstr ""
#. module: mail_tracking_mailgun
#: code:addons/mail_tracking_mailgun/models/mail_tracking_email.py:0
#, python-format
msgid "There is no tracked message!"
msgstr ""
#. module: mail_tracking_mailgun
#: model_terms:ir.ui.view,arch_db:mail_tracking_mailgun.res_config_settings_view_form
msgid ""

View File

@ -276,12 +276,6 @@ msgstr ""
msgid "There is no Mailgun API key!"
msgstr ""
#. module: mail_tracking_mailgun
#: code:addons/mail_tracking_mailgun/models/mail_tracking_email.py:0
#, python-format
msgid "There is no tracked message!"
msgstr ""
#. module: mail_tracking_mailgun
#: model_terms:ir.ui.view,arch_db:mail_tracking_mailgun.res_config_settings_view_form
msgid ""

View File

@ -276,12 +276,6 @@ msgstr ""
msgid "There is no Mailgun API key!"
msgstr ""
#. module: mail_tracking_mailgun
#: code:addons/mail_tracking_mailgun/models/mail_tracking_email.py:0
#, python-format
msgid "There is no tracked message!"
msgstr ""
#. module: mail_tracking_mailgun
#: model_terms:ir.ui.view,arch_db:mail_tracking_mailgun.res_config_settings_view_form
msgid ""

View File

@ -202,12 +202,8 @@ class MailTrackingEmail(models.Model):
https://documentation.mailgun.com/en/latest/api-events.html
"""
api_key, api_url, domain, *__ = self._mailgun_values()
for tracking in self:
if not tracking.mail_message_id:
raise UserError(_("There is no tracked message!"))
message_id = tracking.mail_message_id.message_id.replace("<", "").replace(
">", ""
)
for tracking in self.filtered("message_id"):
message_id = tracking.message_id.replace("<", "").replace(">", "")
events = []
url = urljoin(api_url, "/v3/%s/events" % domain)
params = {

View File

@ -7,10 +7,12 @@
<field name="inherit_id" ref="mail_tracking.view_mail_tracking_email_form" />
<field name="arch" type="xml">
<field name="state" position="before">
<field name="message_id" invisible="1" />
<button
name="action_manual_check_mailgun"
type="object"
string="Re-sync Mailgun"
attrs="{'invisible': [('message_id', '=', False)]}"
/>
</field>
</field>