Commit Graph

1252 Commits (430eaaa901b2d2b1c1580014d7eb3a6676ef4ca6)

Author SHA1 Message Date
Thierry Ducrest 4d6d8cbb17 Fix mail tracking bounce notification not logged
This is to resolve the following issue:

* https://github.com/OCA/social/issues/1121
2024-06-11 09:51:53 +02:00
Francesco Foresti 1260333caf Translated using Weblate (Italian)
Currently translated at 29.8% (34 of 114 strings)

Translation: social-15.0/social-15.0-mail_tracking
Translate-URL: https://translation.odoo-community.org/projects/social-15-0/social-15-0-mail_tracking/it/
2024-06-11 09:51:53 +02:00
Weblate c43890993b Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: social-15.0/social-15.0-mail_tracking
Translate-URL: https://translation.odoo-community.org/projects/social-15-0/social-15-0-mail_tracking/
2024-06-11 09:51:53 +02:00
oca-ci aed012d07f [UPD] Update mail_tracking.pot 2024-06-11 09:51:53 +02:00
sergio-teruel 89e10b9310 [FIX] mail_tracking: Crash to add malformed emails to recipients suggestions 2024-06-11 09:51:53 +02:00
jb 4912eb5389 use keyword arguments in build_email to comply with portal tests 2024-06-11 09:51:53 +02:00
David f9aa7c1fd4 [FIX] mail_tracking: js linter warnings 2024-06-11 09:51:53 +02:00
Stephane Mangin 8301727ee1 [IMP] mail_tracking: remove legacy hooks 2024-06-11 09:51:53 +02:00
david 4cc3d4dc32 [FIX] mail_tracking: permissions
Refine which mail tracking record is allowed to see. We can rely on the
ACLs of the related records so we minimize inconvenient message subject
leaks.

A regular user can read these mail.tracking.email records:

- Those with a linked mail.message that the user can read
- Those with a linked mail.mail that the user can read
- Those with no message/mail link but a linked partner that the user can
read.
- Those with no linked records.

TT31399
2024-06-11 09:51:53 +02:00
sugapablo b760f0780e [FIX] mail_tracking: error when filtering by "Sent" 2024-06-11 09:51:53 +02:00
Jairo Llopis 2e2158594c [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
2024-06-11 09:51:53 +02:00
David 84535f3629 [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-06-11 09:51:53 +02:00
David 38d233e9ff [FIX] mail_tracking: mixed classes
In migration #873 the classes DiscussController and MailController which
are the result of an upstream functionality split are merge altogether
in this module override causing undesired side effects in other modules
trying to extend those (i.e.: portal)

TT41432
2024-06-11 09:51:53 +02:00
Jasmin Solanki 5e9998e324 [MIG] mail_tracking: Migration to 15.0 2024-06-11 09:51:53 +02:00
Jasmin Solanki 5c383b4724 [IMP] mail_tracking: black, isort, prettier 2024-06-11 09:51:53 +02:00
Fernanda Hernández 773ba68bf6 [FIX] mail_tracking: change order of inheritance and use return
Currently when a invoice view is reload in browser or through native
redirections, an error is raised:

```
Traceback:
TypeError: Cannot read properties of undefined (reading 'id')
at Function.convertData [as _super] (https://t50084-053-islamicrelief140.dev.irc.deployv.com/web/content/1819726-9a8777a/web.assets_backend.js:5768:118)
at Function.convertData (https://t50084-053-islamicrelief140.dev.irc.deployv.com/web/content/1819726-9a8777a/web.assets_backend.js:6651:335)
at Function.Class. (https://t50084-053-islamicrelief140.dev.irc.deployv.com/web/content/1819726-9a8777a/web.assets_backend.js:6478:107)
at Function.convertData (https://t50084-053-islamicrelief140.dev.irc.deployv.com/web/content/1819726-9a8777a/web.assets_backend.js:7779:403)
at Function.Class. (https://t50084-053-islamicrelief140.dev.irc.deployv.com/web/content/1819726-9a8777a/web.assets_backend.js:6478:107)
at Function.convertData (https://t50084-053-islamicrelief140.dev.irc.deployv.com/web/content/1819726-9a8777a/web.assets_backend.js:7818:353)
at Function.Class. (https://t50084-053-islamicrelief140.dev.irc.deployv.com/web/content/1819726-9a8777a/web.assets_backend.js:6478:107)
at Function.convertData (https://t50084-053-islamicrelief140.dev.irc.deployv.com/web/content/1819726-9a8777a/web.assets_backend.js:12197:435)
at Function.Class. (https://t50084-053-islamicrelief140.dev.irc.deployv.com/web/content/1819726-9a8777a/web.assets_backend.js:6478:107)
at https://t50084-053-islamicrelief140.dev.irc.deployv.com/web/content/1819726-9a8777a/web.assets_backend.js:5790:359
```

That is because an inheritance wrong, which breaks the flow of start of model
`messaging` and causes that messages execute before the init of var `messaging`.
2024-06-11 09:51:53 +02:00
Fernanda Hernández 4e20cb65aa [FIX] mail_tracking: use recipient_address to search emails
This commits is using the field recipient_address in filter of search view
of mail.tracking.email in order to use the same field used in computed
method:

147eda96a5/mail_tracking/models/res_partner.py (L27)
2024-06-11 09:51:53 +02:00
houssine baa05ca8ab [PORT] porting js code to comply with OWL 2024-06-11 09:51:53 +02:00
Jorge Luis Quinteros b8600c8cb5 [FIX] Change operator to 'ilike' 2024-06-11 09:51:53 +02:00
angelJuaGar 2505952391 [FIX] mail_tracking: Added restriction on email search.
A filter_domain was added in the sender and recipient fields to be able to handle a more specific filter when using mail tracking.
2024-06-11 09:51:53 +02:00
Jairo Llopis 266d8cff75 [FIX] mail_tracking: reduce spammy score
Fix https://github.com/OCA/social/issues/701, following idea from https://kb.mailwizz.com/articles/low-score-in-spamassassin-because-of-the-rand_mktg_header-rule/ to avoid matching the regexp explained in https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7888#c5

@Tecnativa TT29674
2024-06-11 09:51:53 +02:00
angelJuaGar 452872d611 [FIX] mail_tracking: Modification in unitest. 2024-06-11 09:51:53 +02:00
simonev b62aadeea8 [14.0][MIG] mail_tracking 2024-06-11 09:51:53 +02:00
Areeb Siddiqi bb40ec162c [MIG] mail_tracking: Migration to 14.0 2024-06-11 09:51:53 +02:00
Areeb Siddiqi 560d49cc42 [IMP] mail_tracking: black, isort, prettier 2024-06-11 09:51:53 +02:00
Alexandre D. Díaz dd9bced5ef [FIX] mail_tracking: Store cc 2024-06-11 09:51:53 +02:00
Alexandre D. Díaz 1cedb804a4 [IMP] mail_tracking: Discuss failed messages: Button and domain + Only show confirmation if needed 2024-06-11 09:51:44 +02:00
Alexandre D. Díaz feb6c1c9a2 [IMP] Apply pre-commit changes: Resolve conflicts 2024-06-11 09:51:44 +02:00
nmadhoc 41824cf401 [FIX] mail_tracking
When a user try to resend message gets an error stating that it's only allowed for users who belong to the Administration/Settings group
2024-06-11 09:51:44 +02:00
Wolfgang Pichler d90620f135 [FIX] re.search will return None when nothing found. So we have to check for this 2024-06-11 09:42:20 +02:00
Alexandre Díaz 29edda30bc [IMP] mail_tracking: Ignore catchall 2024-06-11 09:42:20 +02:00
Alexandre Díaz 5b34971637 [IMP] mail_tracking: Test 'to' and named emails 2024-06-11 09:42:19 +02:00
Alexandre Díaz aa8e1e6481 [IMP] mail_tracking: Store To recipients and omit aliases 2024-06-11 09:42:19 +02:00
Uku Lagle 12e3347b08 [FIX] mail_tracking: do not warn not found if already opened
The state will be 'opened' after first time email is opened. Each
successive open triggered warning, because state was already 'opened'
and thus did not match domain state in (sent, delivered).

Forward-port #d9ad3464
2024-06-11 09:42:19 +02:00
Alexandre Díaz b52322594c [FIX] mail_tracking: Changed injection method for 'failed_message_ids' field
Before this commit, some methods with views crashes trying to
process 'failed_message_ids' field.
After this commit the 'failed_message_ids' field description
is properly generated.
2024-06-11 09:42:19 +02:00
Alexandre Díaz c3d54d0784 [MIG] mail_tracking: Migration to 13.0 2024-06-11 09:42:19 +02:00
Alexandre Díaz 3b77c528f9 [IMP] mail_tracking: black, isort 2024-06-11 09:42:19 +02:00
Alexandre Díaz f7c8acf6bb [FIX] mail_tracking: Refresh thread widget when sets a message as reviewed
Previous this commit, failed messages widget data wasn't updated properly when you
set as reviewed/retry the last message displayed.

This commit resolve the problem and improves the "set as reviewed" action to avoid
multi-user inconsistencies (don't toggle the value).
2024-06-11 09:42:19 +02:00
Alexandre Díaz b5ee63dec6 [IMP] mail_tracking: Failed Messages to 12.0 2024-06-11 09:42:19 +02:00
Alexandre Díaz b9e43d6d8e [IMP] mail_tracking: translations 2024-06-11 09:42:19 +02:00
Alexandre Díaz 17c39f63ae [IMP] mail_tracking: Convert 'partner_trackings' to dict 2024-06-11 09:42:19 +02:00
Alexandre Díaz 56130736da [IMP] mail_tracking: Cc name & check if mail is Cc 2024-06-11 09:42:19 +02:00
David 2d0c3b7633 [IMP] mail_tracking: mail.thread filter for tracking errors
- Any model inheriting from mail.thread will have a filter available to
obtain records with errors in their messages trackings.
- The messages can be marked as done to avoid false positives when the
issues are solved.
2024-06-11 09:42:19 +02:00
eduardgm 50a4efbf68 Translated using Weblate (Spanish)
Currently translated at 33.3% (29 of 87 strings)

Translation: social-12.0/social-12.0-mail_tracking
Translate-URL: https://translation.odoo-community.org/projects/social-12-0/social-12-0-mail_tracking/es/
2024-06-11 09:42:19 +02:00
Pedro M. Baeza 56a0e70b1b [FIX] mail_tracking: Show correctly blank image
Bad P2 > P3 conversion
2024-06-11 09:42:19 +02:00
Alexandre Díaz d409b23ad0 [IMP] mail_tracking: Adapt test to set (not order preserved) 2024-06-11 09:42:19 +02:00
Alexandre Díaz 1756ce1498 [FIX] mail_tracking: Repeated suggested cc emails 2024-06-11 09:42:19 +02:00
Ihor 46f5cc44ed [FIX] Bug {TypeError: dict.message.hasEmailCc is not a function} during the creation of a new document. 2024-06-11 09:42:19 +02:00
Alexandre Díaz 26e8063fd2 [MIG] mail_tracking: Adapt Cc to 12.0 2024-06-11 09:42:19 +02:00
Vincent Van Rossem 3517ac1c70 [FIX] mail_activity_done: Remove broken and apparently unused js file
From [[15.0][FIX] mail_activity_done: Remove broken and apparently unused js file OCA#994](OCA#994)
2024-06-05 11:49:40 +02:00