Commit Graph

24 Commits (015376b0f4515710aa03c5d01209b6d65f045d43)

Author SHA1 Message Date
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
Jasmin Solanki 680eee8074 [MIG] mail_tracking: Migration to 15.0 2022-04-20 14:46:22 +05:30
simonev 7f964d9386 [14.0][MIG] mail_tracking 2022-04-20 14:46:21 +05:30
Alexandre Díaz fc7d2e9f3a [MIG] mail_tracking: Migration to 13.0 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
ernesto cd1d3be640 [MIG] mail_tracking: Migration to 12.0 2022-04-20 14:46:21 +05:30
David Vidal f1259fc0ec [IMP] mail_tracking: email score performance (#299) 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
eLBati 86031a98a9 IMP mail_tracking performances
On our server,
queries based on "mail_tracking_event"."tracking_email_id" improved from 501,924 ms to 1,840 ms
queries based on "mail_tracking_email"."mail_message_id" improved from 167,436 ms to 3,223 ms

The last ones are run several times when a thread has many messages
2022-04-20 14:46:21 +05:30
Antonio Espinosa 2c5a5647db [FIX] mail_tracking: bugfixes (#199)
* [FIX] Only one data-odoo-tracking-email tag in each email
* [FIX] Get status even in multicompany instances
2022-04-20 14:46:21 +05:30
Antonio Espinosa 3cfe3a2234 [9.0][FIX][mail_tracking] Control exception when mail_message was removed (#132) 2022-04-20 14:46:21 +05:30
Antonio Espinosa 3b5ee4cd61 [8.0][FIX][mail_tracking] Use event recipient address to find partners and contacts to bounce (#133) 2022-04-20 14:46:21 +05:30
Antonio Espinosa 527a8d09c5 Add access to portal/public user to his own email trackings 2022-04-20 14:46:21 +05:30
Antonio Espinosa bc98b9d162 [IMP] mail_tracking: Allow to define a custom mail_tracking base url 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
Pedro M. Baeza 8ec641e750 [FIX] mail_tracking: Typo 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 1d01bf8fb7 [FIX] Update email_score when email changes 2022-04-20 14:46:21 +05:30
Antonio Espinosa 7a684c6e66 [8.0][IMP][mail_tracking] Speed installation time and discard concurrent events (#82)
[IMP] mail_tracking: Speed installation time, discard concurrent events and other fixes
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