Commit Graph

15 Commits (d9d007e18423e9af9d2ec79a78b9911a8933f011)

Author SHA1 Message Date
OCA-git-bot ebc8324aa6 Merge PR #1053 into 15.0
Signed-off-by pedrobaeza
2023-02-12 09:12:56 +00:00
david 015376b0f4 [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
2023-01-31 18:18:59 +01:00
Jairo Llopis 43875033ae [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
2023-01-31 18:12:45 +01:00
David 61a3307900 [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
2023-01-30 18:16:15 +01:00
Jasmin Solanki 680eee8074 [MIG] mail_tracking: Migration to 15.0 2022-04-20 14:46:22 +05:30
Uku Lagle 2718b80146 [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
2022-04-20 14:46:21 +05:30
Alexandre Díaz 200e016ab8 [IMP] mail_tracking: black, isort 2022-04-20 14:46:21 +05:30
Alexandre Díaz eba1e0de8a [IMP] mail_tracking: Failed Messages to 12.0 2022-04-20 14:46:21 +05:30
David 61463fc530 [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.
2022-04-20 14:46:21 +05:30
Pedro M. Baeza 4c6e4661d3 [FIX] mail_tracking: Show correctly blank image
Bad P2 > P3 conversion
2022-04-20 14:46:21 +05:30
David 4c0a9e46c9 [MIG] mail_tracking: Migration to 11.0 2022-04-20 14:46:21 +05:30
Antonio Espinosa 6e5de16361 [IMP] mail_tracking performance and bounce process (#103) 2022-04-20 14:46:21 +05:30
Damien Bouvy 4798d3c817 [MIG] mail_tracking: Migrated to 10.0 2022-04-20 14:46:21 +05:30
Antonio Espinosa 022cb28145 [MIG] mail_tracking
* Improve tests
* Show trackings even if partner removed
* Disable CSRF protection to webhooks controllers
2022-04-20 14:46:21 +05:30
Antonio Espinosa 3d302148c1 [8.0][ADD] mail_tracking addon (#67)
* [ADD] mail_tracking addon

* Add description icon

* Fixes remarked

* Fix Travis error

* Remarks fixed
2022-04-20 14:46:21 +05:30