Commit Graph

889 Commits (b9f967735e8011fd5ae1a6407c988b09c51c47b8)

Author SHA1 Message Date
Pedro M. Baeza b9f967735e
Merge pull request #831 from Tecnativa/13.0-fix-mail_layout_preview
[13.0][FIX] mail_layout_preview: fix unit test
2022-01-14 20:13:09 +01:00
Ernesto Tejeda 64fcdaa042 [FIX] mail_layout_preview: fix unit test 2022-01-14 13:48:10 -05:00
tfo eeaaa80918 Translated using Weblate (French)
Currently translated at 32.0% (8 of 25 strings)

Translation: social-13.0/social-13.0-mail_activity_team
Translate-URL: https://translation.odoo-community.org/projects/social-13-0/social-13-0-mail_activity_team/fr/
2022-01-13 12:40:00 +00:00
tfo 30a6526510 Translated using Weblate (French)
Currently translated at 100.0% (18 of 18 strings)

Translation: social-13.0/social-13.0-mail_activity_board
Translate-URL: https://translation.odoo-community.org/projects/social-13-0/social-13-0-mail_activity_board/fr/
2022-01-13 12:39:59 +00:00
tfo db011e64a8 Added translation using Weblate (French) 2022-01-13 10:14:14 +00:00
tfo 66314148af Added translation using Weblate (French) 2022-01-13 09:09:49 +00:00
Pedro M. Baeza b1c5593ad4 [FIX] mail_tracking_mailgun: Proper migration script
Create must have a dictionary although empty
2021-11-25 14:37:57 +01:00
OCA Transbot b1cf214e23 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: social-13.0/social-13.0-mail_tracking_mailgun
Translate-URL: https://translation.odoo-community.org/projects/social-13-0/social-13-0-mail_tracking_mailgun/
2021-11-25 10:30:33 +00:00
OCA-git-bot ff958d8eb4 [UPD] README.rst 2021-11-25 10:30:22 +00:00
OCA-git-bot be43faed13 [UPD] addons table in README.md 2021-11-25 10:30:16 +00:00
oca-travis 624bf4c5fe [UPD] Update mail_tracking_mailgun.pot 2021-11-25 10:07:25 +00:00
OCA-git-bot c41f97408a Merge PR #804 into 13.0
Signed-off-by pedrobaeza
2021-11-25 09:46:48 +00:00
Jairo Llopis 8681bc0fc4 [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
2021-11-25 10:41:08 +01:00
OCA-git-bot 2b3565f630 [ADD] setup.py 2021-11-24 21:33:28 +00:00
OCA-git-bot fa58325272 [UPD] README.rst 2021-11-24 21:33:28 +00:00
OCA-git-bot 745e418c0c [UPD] addons table in README.md 2021-11-24 21:33:24 +00:00
oca-travis d42205591e [UPD] Update mail_activity_creator.pot 2021-11-24 21:12:39 +00:00
OCA-git-bot 39931ad3b2 Merge PR #799 into 13.0
Signed-off-by dreispt
2021-11-24 20:54:47 +00:00
Jairo Llopis 66fb64d41a
[FIX] mail_tracking: process sent events
Up until now, the `sent` event type was never processed, probably because it "made no sense", as an unsent email would never trigger an event.

However, it makes sense to process it because you may have a local relay that transmits mails over to the mail provider. In those circumstances, you should have 2 "sent" events (one from the relay and another one from the provider).

Also marked some useless parts of code for removal.

@Tecnativa TT32365
2021-11-23 12:08:20 +00:00
Joan Mateu Jordi 7ee228bbc1 [MIG] mail_activity_creator: Migration to 13.0 2021-11-16 11:28:51 +01:00
Joan Mateu Jordi 2010edc8e8 [IMP] mail_activity_creator black, isort, prettier 2021-11-16 08:39:06 +01:00
OCA-git-bot 10baf7b536 [UPD] README.rst 2021-11-16 08:32:41 +01:00
oca-travis 1168d53c8f [UPD] Update mail_activity_creator.pot 2021-11-16 08:32:41 +01:00
Jaime Arroyo 7733f0c84e [11.0][ADD] mail_activity_creator 2021-11-16 08:32:41 +01:00
OCA Transbot 83b9c18133 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: social-13.0/social-13.0-mail_optional_autofollow
Translate-URL: https://translation.odoo-community.org/projects/social-13-0/social-13-0-mail_optional_autofollow/
2021-11-11 12:05:33 +00:00
OCA Transbot d72ac981b3 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: social-13.0/social-13.0-mail_optional_follower_notification
Translate-URL: https://translation.odoo-community.org/projects/social-13-0/social-13-0-mail_optional_follower_notification/
2021-11-11 12:05:33 +00:00
OCA Transbot 8840738ab5 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: social-13.0/social-13.0-mail_attach_existing_attachment
Translate-URL: https://translation.odoo-community.org/projects/social-13-0/social-13-0-mail_attach_existing_attachment/
2021-11-11 12:05:31 +00:00
OCA Transbot fef89ddd6d Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: social-13.0/social-13.0-base_search_mail_content
Translate-URL: https://translation.odoo-community.org/projects/social-13-0/social-13-0-base_search_mail_content/
2021-11-11 12:05:31 +00:00
OCA Transbot cb9cc14851 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: social-13.0/social-13.0-mail_tracking
Translate-URL: https://translation.odoo-community.org/projects/social-13-0/social-13-0-mail_tracking/
2021-11-11 12:05:28 +00:00
OCA Transbot fcb94d29e3 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: social-13.0/social-13.0-mail_activity_done
Translate-URL: https://translation.odoo-community.org/projects/social-13-0/social-13-0-mail_activity_done/
2021-11-11 12:05:26 +00:00
OCA-git-bot a60c49d834 [ADD] setup.py 2021-11-11 12:05:17 +00:00
OCA-git-bot 6436923102 [UPD] README.rst 2021-11-11 12:05:16 +00:00
OCA-git-bot a429f8733f [UPD] addons table in README.md 2021-11-11 12:05:12 +00:00
oca-travis 0f725dcb6e [UPD] Update mail_tracking.pot 2021-11-11 11:52:47 +00:00
oca-travis 20012bfdbc [UPD] Update mail_optional_follower_notification.pot 2021-11-11 11:52:37 +00:00
oca-travis ee3a8613ed [UPD] Update mail_optional_autofollow.pot 2021-11-11 11:52:35 +00:00
oca-travis 44401faa05 [UPD] Update mail_attach_existing_attachment_account.pot 2021-11-11 11:52:19 +00:00
oca-travis 7fb33c6411 [UPD] Update mail_attach_existing_attachment.pot 2021-11-11 11:52:18 +00:00
oca-travis 03a42ae16e [UPD] Update mail_activity_done.pot 2021-11-11 11:52:12 +00:00
oca-travis 00ed318cee [UPD] Update base_search_mail_content.pot 2021-11-11 11:52:04 +00:00
OCA-git-bot 4163ba7a14 Merge PR #797 into 13.0
Signed-off-by pedrobaeza
2021-11-11 11:42:53 +00:00
Víctor Martínez 98d712f67b [IMP] mail_attach_existing_attachment: Improve tests.
TT28899
2021-11-11 12:18:50 +01:00
Radovan Skolnik a10f2294f2 [MIG] mail_attach_existing_attachment_account: Migration to 13.0
TT28899
2021-11-11 12:16:33 +01:00
Víctor Martínez fae2f77eab [IMP] mail_attach_existing_attachment_account: black, isort, prettier 2021-11-11 12:16:33 +01:00
tbaden 14882fcae4 [12.0][ADD]mail_attach_existing_attachment_account
[UPD] README.rst

[ADD] icon.png

[UPD] Update mail_attach_existing_attachment_account.pot

[UPD] README.rst
2021-11-11 12:16:30 +01:00
oca-git-bot 78daea28e5
[IMP] update dotfiles [ci skip] 2021-11-10 22:40:36 +01:00
oca-git-bot 002fdc0067
[IMP] update dotfiles [ci skip] 2021-10-21 17:51:18 +02:00
OCA-git-bot f83012277d [ADD] setup.py 2021-10-16 06:47:41 +00:00
oihane e3a2f3e363 Translated using Weblate (Spanish)
Currently translated at 80.0% (4 of 5 strings)

Translation: social-13.0/social-13.0-mail_debrand
Translate-URL: https://translation.odoo-community.org/projects/social-13-0/social-13-0-mail_debrand/es/
2021-10-05 12:34:38 +00:00
oihane 1ae0fbadf2 Added translation using Weblate (Spanish) 2021-10-05 10:16:08 +00:00