Commit Graph

797 Commits (e0231a7d00ca103f4483f1ad77bab77cc2ff3d00)

Author SHA1 Message Date
oca-ci e0231a7d00 [UPD] Update mail_composer_cc_bcc_account.pot 2024-07-22 05:45:30 +00:00
oca-ci 47bf54c9f8 [UPD] Update mail_composer_cc_bcc.pot 2024-07-22 05:45:30 +00:00
oca-ci fc6f806b00 [UPD] Update mail_activity_team.pot 2024-07-22 05:45:29 +00:00
oca-ci 382b624579 [UPD] Update mail_activity_done.pot 2024-07-22 05:45:29 +00:00
oca-ci 6c467f6538 [UPD] Update base_search_mail_content.pot 2024-07-22 05:45:28 +00:00
OCA-git-bot a7d3b2be2f Merge PR #1312 into 17.0
Signed-off-by hbrunn
2024-07-22 05:42:44 +00:00
OCA-git-bot a8c4026843 [BOT] post-merge updates 2024-07-22 05:02:35 +00:00
oca-ci ac9ab19724 [UPD] Update mail_activity_done.pot 2024-07-22 05:00:05 +00:00
OCA-git-bot a320ba4e31 Merge PR #1387 into 17.0
Signed-off-by hbrunn
2024-07-22 04:58:00 +00:00
trisdoan 217a993878 [MIG] mail_composer_cc_bcc_account: Migration to 17.0 2024-07-21 22:08:07 +07:00
trisdoan 2f8bea8d5d [IMP] mail_composer_cc_bcc_account: pre-commit 2024-07-21 22:04:55 +07:00
mymage 55399ba1e6 Added translation using Weblate (Italian) 2024-07-21 22:04:55 +07:00
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