Commit Graph

1217 Commits (13a9674ba75055b636b216ebd3a1c1708b48bc8c)

Author SHA1 Message Date
OCA-git-bot 192e723291 [BOT] post-merge updates 2024-07-21 22:04:55 +07:00
oca-ci 9e01fd39c2 [UPD] Update mail_composer_cc_bcc_account.pot 2024-07-21 22:04:55 +07:00
Ronald Portier 921b4688e0 [IMP] mail_compose_cc_bcc: split off account specific part 2024-07-21 22:04:55 +07:00
trisdoan 154eccdb08 mail_composer_cc_bcc: fix authorship 2024-07-21 22:04:55 +07:00
trisdoan 23c95a7fb7 [MIG] mail_composer_cc_bcc: Migration to 17.0 2024-07-21 22:04:55 +07:00
trisdoan c0f4e5c1c2 [IMP] mail_composer_cc_bcc: pre-commit 2024-07-21 22:04:55 +07:00
OCA-git-bot e7a5b94661 [BOT] post-merge updates 2024-07-21 22:04:55 +07:00
Stefan Rijnhart 8a1ee50eae [FIX] mail_composer_cc_bcc: find invoice regardless of the current year 2024-07-21 22:04:55 +07:00
mymage 742fb42121 Translated using Weblate (Italian)
Currently translated at 100.0% (18 of 18 strings)

Translation: social-16.0/social-16.0-mail_composer_cc_bcc
Translate-URL: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mail_composer_cc_bcc/it/
2024-07-21 22:04:55 +07:00
mymage 00c9613145 Added translation using Weblate (Italian) 2024-07-21 22:04:55 +07:00
Ivorra78 2198d5e47f Translated using Weblate (Spanish)
Currently translated at 100.0% (18 of 18 strings)

Translation: social-16.0/social-16.0-mail_composer_cc_bcc
Translate-URL: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mail_composer_cc_bcc/es/
2024-07-21 22:04:55 +07:00
Ivorra78 a0fde5e3dc Translated using Weblate (Spanish)
Currently translated at 83.3% (15 of 18 strings)

Translation: social-16.0/social-16.0-mail_composer_cc_bcc
Translate-URL: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mail_composer_cc_bcc/es/
2024-07-21 22:04:55 +07:00
Ivorra78 9a2adea326 Added translation using Weblate (Spanish) 2024-07-21 22:04:55 +07:00
oca-ci 423042b4e8 [UPD] Update mail_composer_cc_bcc.pot 2024-07-21 22:04:55 +07:00
sonhd91 08ca9358b3 [MIG] mail_composer_cc_bcc: Migrate to version 16.0 2024-07-21 22:04:55 +07:00
Nils Hamerlinck d755529613 [FIX] mail_composer_cc_bcc: changes upstream 2024-07-21 22:04:54 +07:00
Nils Hamerlinck 79293caf9f [FIX] mail_composer_cc_bcc: don't impact mass_mailing 2024-07-21 22:04:54 +07:00
Christoph Abenthung f7c5d72be6 [FIX]mail_composer_cc_bcc: avoid sending multiple mails to all recipients when no cc or bcc 2024-07-21 22:04:54 +07:00
OCA-git-bot 6af1ff6f95 [ADD] icon.png 2024-07-21 22:04:54 +07:00
Hai Lang 9ee6c19519 [FIX] avoid confusion of email's partners 2024-07-21 22:04:54 +07:00
Hai Lang 5f1950a54d [ADD] mail_composer_cc_bcc: send email to cc, bcc addresses 2024-07-21 22:04:54 +07:00
Weblate 3d099f9ad7 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: social-17.0/social-17.0-mail_tracking_mailgun
Translate-URL: https://translation.odoo-community.org/projects/social-17-0/social-17-0-mail_tracking_mailgun/
2024-07-16 10:42:21 +00:00
OCA-git-bot 2ad83c5cb2 [BOT] post-merge updates 2024-07-16 07:34:37 +00:00
oca-ci c76c83bf66 [UPD] Update mail_tracking_mailgun.pot 2024-07-16 07:32:17 +00:00
OCA-git-bot 69b9367b5b Merge PR #1410 into 17.0
Signed-off-by pedrobaeza
2024-07-16 07:30:01 +00:00
David 9301a732fe [MIG] mail_tracking_mailgun: Migration to 17.0
TT49914
2024-07-12 11:35:29 +02:00
David e1b1ff2ff5 [IMP] mail_tracking_mailgun: black, isort, prettier 2024-07-11 14:05:40 +02:00
David b2f2aae81e [FIX] mail_tracking_mailgun: discard non Odoo events
When we use the same Mailgun domain for other services, the email events
for those services we'll be pushed to the Odoo controller as well. We
want to discard them as they're useless to us.

Aside from that, in the case a wrong db is called to the controller, we
better logging the failed request is going to be more useful than
raising an error.
2024-07-11 14:05:40 +02:00
Vincent Hatakeyama c59976d51d Translated using Weblate (French)
Currently translated at 37.9% (22 of 58 strings)

Translation: social-16.0/social-16.0-mail_tracking_mailgun
Translate-URL: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mail_tracking_mailgun/fr/
2024-07-11 14:02:25 +02:00
mymage 52fc14765a Translated using Weblate (Italian)
Currently translated at 100.0% (58 of 58 strings)

Translation: social-16.0/social-16.0-mail_tracking_mailgun
Translate-URL: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mail_tracking_mailgun/it/
2024-07-11 14:02:25 +02:00
David dd734798c1 [FIX/IMP] mail_tracking_mailgun: finish migration
- Fix tests
- Fix warnings
- Improve code
- Get rid of superfluous stuff
- Remove auto-validation. It couldn't be working as it was and it would
  drag performance on contacts creation/write if active.

TT44207
2024-07-11 14:02:25 +02:00
Jesús Alan Ramos Rodríguez c92df37ea1 [MIG] mail_tracking_mailgun: Migration to 16.0 2024-07-11 14:02:25 +02:00
Ivorra78 5ae5bd5d1a Translated using Weblate (Spanish)
Currently translated at 100.0% (60 of 60 strings)

Translation: social-15.0/social-15.0-mail_tracking_mailgun
Translate-URL: https://translation.odoo-community.org/projects/social-15-0/social-15-0-mail_tracking_mailgun/es/
2024-07-11 14:02:25 +02:00
David 1f424e1a5e [FIX] mail_tracking_mailgun: bounces error
Since 9a47101964
bouncing the emails through the mailgun controller causes a singleton
error when the anonymous user tries to record the bounce message.

TT44585
2024-07-11 14:02:25 +02:00
David 81fcfcb536 [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
2024-07-11 14:02:25 +02:00
nicolas 3fdbd86ef5 [MIG] mail_tracking_mailgun: Migration to 15.0 2024-07-11 14:02:25 +02:00
Jairo Llopis 59ae701834 [IMP] mail_tracking_mailgun: refactor to support modern webhooks
Before this patch, the module was designed after the [deprecated Mailgun webhooks][3]. However Mailgun had the [events API][2] which was quite different. Modern Mailgun has deprecated those webhooks and instead uses new ones that include the same payload as the events API, so you can reuse code.

However, this was incorrectly reusing the code inversely: trying to process the events API through the same code prepared for the deprecated webhooks.

Besides, both `failed` and `rejected` mailgun events were mapped to `error` state, but that was also wrong because [`mail_tracking` doesn't have an `error` state][1].

So the logic of the whole module is changed, adapting it to process the events API payload, both through controllers (prepared for the new webhooks) and manual updates that directly call the events API.

Also, `rejected` is now translated into `reject`, and `failed` is translated into `hard_bounce` or `soft_bounce` depending on the severity, as specified by [mailgun docs][2]. Also, `bounced` and `dropped` mailgun states are removed because they don't exist, and instead `failed` and `rejected` properly get their metadata.

Of course, to know the severity, now the method to obtain that info must change, it' can't be a simple dict anymore.

Added more parameters because for example modern Mailgun uses different keys for signing payload than for accessing the API. As there are so many parameters, configuration is now possible through `res.config.settings`. Go there to autoregister webhooks too.

Since the new webhooks are completely incompatible with the old supposedly-abstract webhooks controllers (that were never really that abstract), support for old webhooks is removed, and it will be removed in the future from `mail_tracking` directly. There is a migration script that attempts to unregister old webhooks and register new ones automatically.

[1]: f73de421e2/mail_tracking/models/mail_tracking_event.py (L31-L42)
[2]: https://documentation.mailgun.com/en/latest/api-events.html#event-types
[3]: https://documentation.mailgun.com/en/latest/api-webhooks-deprecated.html
2024-07-11 14:02:25 +02:00
Carlos Roca 89e0d3dd8a [MIG] mail_tracking_mailgun: Migration to v14.0 2024-07-11 14:02:25 +02:00
Alexandre D. Díaz 4e456eb1d2 [IMP] Apply pre-commit changes: Resolve conflicts 2024-07-11 14:02:25 +02:00
Jairo Llopis 2538f700b5 [IMP] pre-commit run -a 2024-07-11 14:02:25 +02:00
Holger Brunn 1fe07aaa2c [FIX] import mock the python3 way 2024-07-11 14:02:25 +02:00
hveficent 2bd0f46ec4 [MIG] mail_tracking_mailgun: Migration to 13.0 2024-07-11 14:02:25 +02:00
hveficent 5499ca0ffe [IMP] mail_tracking_mailgun: black, isort 2024-07-11 14:02:25 +02:00
Matjaz Mozetic 53b24e598e 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/
2024-07-11 14:02:25 +02:00
Katherine Zaoral 57e8ee7b68 [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.
2024-07-11 14:02:25 +02:00
Pedro Castro Silva c33ab21244 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/
2024-07-11 14:02:25 +02:00
David 5944160350 [IMP] mail_tracking_mailgun: link to bounce event 2024-07-11 14:02:25 +02:00
ernesto 2d71e18717 [MIG] mail_tracking_mailgun: Migration to 12.0 2024-07-11 14:02:25 +02:00
David 6b2939cf9c [FIX] mail_tracking_mailgun: alternative domain
- In case the sending domain is different from the one configured in the
mail.domain.catchall setting.
2024-07-11 14:02:25 +02:00
c2cdidier 6f41ff6673 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/
2024-07-11 14:02:25 +02:00