Commit Graph

22 Commits (b4ab1600fe0b464937ff3dc06ff7cbf3a29afe3a)

Author SHA1 Message Date
david b4ab1600fe [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
2022-09-16 16:21:18 +02: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
Alexandre Díaz 62d04f9d7d [MIG] mail_tracking: Migration to 13.0 2020-02-05 17:32:40 +01:00
Alexandre Díaz c16bb47d6f [IMP] mail_tracking: black, isort 2020-02-05 16:34:45 +01:00
Alexandre Díaz 29905e66f9 [IMP] mail_tracking: Failed Messages to 12.0 2020-02-05 14:57:34 +01:00
David cea7f76c8e [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.
2020-02-05 14:57:34 +01:00
ernesto 31948be06f [MIG] mail_tracking: Migration to 12.0 2020-02-05 14:57:34 +01:00
David Vidal 8890ec87ea [IMP] mail_tracking: email score performance (#299) 2020-02-05 14:57:34 +01:00
David 8f30f4daa9 [MIG] mail_tracking: Migration to 11.0 2020-02-05 14:57:34 +01:00
eLBati 09ff021613 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
2020-02-05 14:57:34 +01:00
Antonio Espinosa 5cb779b5eb [FIX] mail_tracking: bugfixes (#199)
* [FIX] Only one data-odoo-tracking-email tag in each email
* [FIX] Get status even in multicompany instances
2020-02-05 14:57:34 +01:00
Antonio Espinosa b11c6ae4f8 [9.0][FIX][mail_tracking] Control exception when mail_message was removed (#132) 2020-02-05 14:57:34 +01:00
Antonio Espinosa a1035abf89 [8.0][FIX][mail_tracking] Use event recipient address to find partners and contacts to bounce (#133) 2020-02-05 14:57:34 +01:00
Antonio Espinosa d884e4802f Add access to portal/public user to his own email trackings 2020-02-05 14:57:34 +01:00
Antonio Espinosa 5e7612118b [IMP] mail_tracking: Allow to define a custom mail_tracking base url 2020-02-05 14:57:34 +01:00
Antonio Espinosa c02aa2b5bb [IMP] mail_tracking performance and bounce process (#103) 2020-02-05 14:57:34 +01:00
Damien Bouvy a4b0b20d57 [MIG] mail_tracking: Migrated to 10.0 2020-02-05 14:57:34 +01:00
Pedro M. Baeza 4113593ceb [FIX] mail_tracking: Typo 2020-02-05 14:57:34 +01:00
Antonio Espinosa 9fc34be574 [MIG] mail_tracking
* Improve tests
* Show trackings even if partner removed
* Disable CSRF protection to webhooks controllers
2020-02-05 14:57:34 +01:00
Antonio Espinosa 5b6ca43622 [FIX] Update email_score when email changes 2020-02-05 14:57:34 +01:00
Antonio Espinosa ba88f8ae71 [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
2020-02-05 14:57:34 +01:00
Antonio Espinosa 0a5c9adcd7 [8.0][ADD] mail_tracking addon (#67)
* [ADD] mail_tracking addon

* Add description icon

* Fixes remarked

* Fix Travis error

* Remarks fixed
2020-02-05 14:57:34 +01:00