Commit Graph

1306 Commits (bac73d64ae91a33151b1f1aef5e8e397bef19ed1)

Author SHA1 Message Date
Jairo Llopis c95a12e6b0 [IMP] pre-commit run -a 2023-11-02 12:33:26 +01:00
Holger Brunn ab12ec030c [FIX] import mock the python3 way 2023-11-02 12:33:26 +01:00
hveficent 254b027a23 [MIG] mail_tracking_mailgun: Migration to 13.0 2023-11-02 12:33:26 +01:00
hveficent 88a81a2603 [IMP] mail_tracking_mailgun: black, isort 2023-11-02 12:33:26 +01:00
Matjaz Mozetic 456eb02e61 Translated using Weblate (Slovenian)
Currently translated at 12.5% (3 of 24 strings)

Translation: social-12.0/social-12.0-mail_tracking_mailgun
Translate-URL: https://translation.odoo-community.org/projects/social-12-0/social-12-0-mail_tracking_mailgun/sl/
2023-11-02 12:33:26 +01:00
Katherine Zaoral aaf9c52e66 [ADD] mail_tracking_mailgun: manage failed state from mailgun
This change let odoo process a state sent from mailgun legacy webhooks
that seems to apply when the message is not sent because the related
email has been mark us as spam or have bounced before. For solve this
add two new states to _mailgun_event_type_mapping_mailgun_event_type_mapping
method:

* failed: Mailgun could not deliver the email to the recipient email server
* rejected: Mailgun rejected the request to send/forward the email

source in https://documentation.mailgun.com/en/latest/quickstart-events.html#events.
2023-11-02 12:33:26 +01:00
Pedro Castro Silva 06dc17b69f Translated using Weblate (Portuguese)
Currently translated at 95.8% (23 of 24 strings)

Translation: social-12.0/social-12.0-mail_tracking_mailgun
Translate-URL: https://translation.odoo-community.org/projects/social-12-0/social-12-0-mail_tracking_mailgun/pt/
2023-11-02 12:33:26 +01:00
David 905fa5796c [IMP] mail_tracking_mailgun: link to bounce event 2023-11-02 12:33:26 +01:00
ernesto da740e0ec7 [MIG] mail_tracking_mailgun: Migration to 12.0 2023-11-02 12:33:26 +01:00
David 9e39635987 [FIX] mail_tracking_mailgun: alternative domain
- In case the sending domain is different from the one configured in the
mail.domain.catchall setting.
2023-11-02 12:33:26 +01:00
c2cdidier e26afd4c99 Translated using Weblate (French)
Currently translated at 16.7% (4 of 24 strings)

Translation: social-11.0/social-11.0-mail_tracking_mailgun
Translate-URL: https://translation.odoo-community.org/projects/social-11-0/social-11-0-mail_tracking_mailgun/fr/
2023-11-02 12:33:26 +01:00
Sergio Teruel Albert 191a8e40ad [11.0][FIX] mail_tracking_mailgun: Read config parameters with sudo 2023-11-02 12:33:26 +01:00
David 7b2b8c5dfb [MIG] mail_tracking_mailgun: Migration to 11.0 2023-11-02 12:33:26 +01:00
OCA Transbot 73bb77fb0f OCA Transbot updated translations from Transifex 2023-11-02 12:33:26 +01:00
David 3ba032094b [IMP] mail_tracking_mailgun: validation auto check
- Configurable partner email auto check.
2023-11-02 12:33:26 +01:00
David 441c50d857 [FIX] mail_tracking_mailgun: manual sync gets events from other recipients 2023-11-02 12:33:26 +01:00
Pedro M. Baeza 4d0dbb5c3d [FIX] mail_tracking_mailgun: Message error on bounce 2023-11-02 12:33:26 +01:00
OCA Transbot b8da676ac3 OCA Transbot updated translations from Transifex 2023-11-02 12:33:26 +01:00
Jairo Llopis ec5ef9769f [FIX] mail_tracking_mailgun: Avoid errors without event
When this method is called without an event (a.k.a. `event=None`), this method produces the following error:

```
Traceback (most recent call last):
  File "/opt/odoo/auto/addons/mail/models/mail_mail.py", line 278, in send
    res = IrMailServer.send_email(msg, mail_server_id=mail.mail_server_id.id)
  File "/opt/odoo/auto/addons/mail_tracking/models/ir_mail_server.py", line 88, in send_email
    tracking_email.smtp_error(self, smtp_server_used, e)
  File "/opt/odoo/auto/addons/mail_tracking/models/mail_tracking_email.py", line 213, in smtp_error
    self.sudo()._partners_email_bounced_set('error')
  File "/opt/odoo/auto/addons/mail_tracking/models/mail_tracking_email.py", line 203, in
_partners_email_bounced_set
    ]).email_bounced_set(self, reason, event=event)
  File "/opt/odoo/auto/addons/mail_tracking_mailgun/models/res_partner.py", line 22, in
email_bounced_set
    self._email_bounced_set(reason, event)
  File "/opt/odoo/auto/addons/mail_tracking_mailgun/models/res_partner.py", line 33, in
_email_bounced_set
    event['Message-Id'] or '') TypeError: 'NoneType' object has no attribute '__getitem__'
```

So, we now assume we do not always have an event.
2023-11-02 12:33:26 +01:00
David 01c4a5869c [10.0][FIX] mail_tracking_mailgun: Avoid key dict errors 2023-11-02 12:33:26 +01:00
OCA Transbot 5d417cca4b OCA Transbot updated translations from Transifex 2023-11-02 12:33:26 +01:00
David e463b1107f [10.0][IMP] mail_tracking_mailgun: add partner mail checks 2023-11-02 12:33:26 +01:00
OCA Transbot 09d0de1d3c OCA Transbot updated translations from Transifex 2023-11-02 12:33:26 +01:00
David Vidal 308a4a6b7a [IMP] mute logger on tests error responses so Travis doesn't fail 2023-11-02 12:33:26 +01:00
OCA Transbot 7b26c946ff OCA Transbot updated translations from Transifex 2023-11-02 12:33:26 +01:00
Rafael Blasco bc18b60955 Add Contributors
Both Carlos and me have work a lot in this module, maybe not coding but much testing and definition in usability
2023-11-02 12:33:26 +01:00
OCA Transbot 7c658c9384 OCA Transbot updated translations from Transifex 2023-11-02 12:33:26 +01:00
Damien Bouvy 1fcc22e769 [MIG] mail_tracking_mailgun: Migrated to 10.0 2023-11-02 12:33:26 +01:00
Pedro M. Baeza e9a8427509 [MIG] Rename manifest files 2023-11-02 12:33:26 +01:00
Pedro M. Baeza 1db105af57 [MIG] Make modules uninstallable 2023-11-02 12:33:26 +01:00
Antonio Espinosa a38be6723d [MIG] mail_tracking_mailgun 2023-11-02 12:33:26 +01:00
Antonio Espinosa 03e7abdceb [8.0][IMP][mail_tracking] Speed installation time and discard concurrent events (#82)
[IMP] mail_tracking: Speed installation time, discard concurrent events and other fixes
2023-11-02 12:33:26 +01:00
Antonio Espinosa bc509596db [ADD] mail_tracking_mailgun 2023-11-02 12:33:26 +01:00
Antonio Espinosa a649f42087 OCA Transbot updated translations from Transifex 2023-11-02 12:33:26 +01:00
OCA-git-bot a73b661b5b [BOT] post-merge updates 2023-10-31 20:33:37 +00:00
oca-ci 20bba046e9 [UPD] Update mail_tracking_mass_mailing.pot 2023-10-31 20:30:04 +00:00
OCA-git-bot 7b6f20e94e Merge PR #1248 into 16.0
Signed-off-by pedrobaeza
2023-10-31 20:26:50 +00:00
David e450213240 [MIG] mail_tracking_mass_mailing: finish migration to 16.0
TT44208
2023-10-31 21:25:17 +01:00
nguyenhk 4273a174c6 [MIG] mail_tracking_mass_mailing: Migration to 16.0 2023-10-31 17:03:17 +01:00
nguyenhk dc423ca78c [IMP] mail_tracking_mass_mailing: black, isort, prettier 2023-10-31 17:03:17 +01:00
Weblate e3fb704bbd Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: social-15.0/social-15.0-mail_tracking_mass_mailing
Translate-URL: https://translation.odoo-community.org/projects/social-15-0/social-15-0-mail_tracking_mass_mailing/
2023-10-31 17:03:17 +01:00
oca-ci 854f7c4d48 [UPD] Update mail_tracking_mass_mailing.pot 2023-10-31 17:03:17 +01:00
sergio-teruel 68fed08e46 [FIX] mail_tracking: permissions. fw-port 2023-10-31 17:03:17 +01:00
sergio-teruel 0520c8651a [MIG] mail_tracking_mass_mailing: Migration to v15.0 2023-10-31 17:03:17 +01:00
OCA-git-bot 8d6c2c4f97 mail_tracking_mass_mailing 14.0.1.0.1 2023-10-31 17:03:17 +01:00
Akim Juillerat 5948f1eade mail_tracking_mass_mailing: Set traces in error according to tracking
If an exception is caught by ir.mail_server.send_email in mail_tracking module,
the mail.tracking.email record will appear in error but the related mailing
trace would still appear as sent because mail.mail._postprocess_sent_message is
called without any failure_type in mail.mail._send in the mail module (as Exception
is not raised after being caught in mail_tracking module).

Since _postprocess_sent_message method not only sets the mailing.trace state in
mass_mailing module but can also delete the mail.mail records in mail module,
we need to ensure the mailing.trace is written accordingly to the tracking here,
and avoid having the mass_mailing module set a 'sent' status if we had an exception,
hence the usage of a context key to ignore possible writes.
2023-10-31 17:03:17 +01:00
OCA-git-bot 0b293d0554 [UPD] README.rst 2023-10-31 17:03:17 +01:00
oca-travis 8e6097e71a [UPD] Update mail_tracking_mass_mailing.pot 2023-10-31 17:03:17 +01:00
Carlos Roca 45bd999b2e [MIG] mail_tracking_mass_mailing: Migration to v14.0 2023-10-31 17:03:17 +01:00
Jairo Llopis 46f0955911 [IMP] pre-commit run -a 2023-10-31 17:03:17 +01:00