Commit Graph

35 Commits (aa03db13282fdd03dbf18f9f512bf611eba006c2)

Author SHA1 Message Date
payen000 ef73e2d7ab [MIG] mail_tracking: Completed migration to 16.0
The following changes were implemented:

1 - Added Failed Message component and related components to reuse the
    Message component when rendering failed messages. This allows us to
    dispose of the messagefailed JS model altogether, since failed messages
    are now just regular messages that were marked as failed.

2 - Added Owl reactivity to failed message actions so that browser does
    not have to be reloaded each time a message is marked as reviewed or
    resent.

3 - Fixed 'Retry' and 'Set as reviewed' flows for failed messages.

4 - Fixed `Failed sent messages` filter on models by overriding `get_view`
    instead of `_fields_view_get`

5 - Refactored folder structure to more closely resemble the `mail`
    module's folder structure.

6 - Refactored module to utilize `Command` as a means to create, write,
    etc. instead of `[0, ...]`, `[4, ...]`.

7 - Fixed and added unit tests.

8 - Removed dead/unused code from `v15`.
2023-10-09 07:55:22 -07:00
filoquin b3f4068e02 [MIG] mail_tracking: Migration to 16.0 2023-09-25 07:50:08 -07:00
dhx e801690097 [IMP] mail_tracking: New config parameter to disable the tracking image
- As the tracker img in the body is currently also used to set the
  X-Odoo-MailTracking-ID mail header we can remove the tag only
  after this is done
- Added tests to check for the presence and absence of the tracking
  image tag depending on the new configuration parameter
2023-09-25 07:40:36 -07:00
Thierry Ducrest 17fcd66213 Fix mail tracking bounce notification not logged
This is to resolve the following issue:

* https://github.com/OCA/social/issues/1121
2023-09-25 07:40:35 -07:00
david 7165e484e4 [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-09-25 07:40:35 -07:00
Jasmin Solanki e8b450d383 [MIG] mail_tracking: Migration to 15.0 2023-09-25 07:40:35 -07:00
houssine 2c35e9bede [PEP8] pre-commit 2023-09-25 07:40:35 -07:00
angelJuaGar a5b00f7a22 [FIX] mail_tracking: Modification in unitest. 2023-09-25 07:40:35 -07:00
simonev 9f5a34ac64 [14.0][MIG] mail_tracking 2023-09-25 07:40:35 -07:00
Alexandre D. Díaz c1499d8025 [FIX] mail_tracking: Store cc 2023-09-25 07:40:35 -07:00
Alexandre D. Díaz 98778b3caa [IMP] mail_tracking: Discuss failed messages: Button and domain 2023-09-25 07:40:35 -07:00
Alexandre Díaz 104ea90bd3 [IMP] mail_tracking: Ignore catchall 2023-09-25 07:40:35 -07:00
Alexandre Díaz 2f3fc116ca [IMP] mail_tracking: Test 'to' and named emails 2023-09-25 07:40:35 -07:00
Alexandre Díaz 7a099500e4 [IMP] mail_tracking: Store To recipients and omit aliases 2023-09-25 07:40:35 -07:00
Alexandre Díaz 4acc95a031 [MIG] mail_tracking: Migration to 13.0 2023-09-25 07:40:35 -07:00
Alexandre Díaz 6b980a571d [IMP] mail_tracking: black, isort 2023-09-25 07:40:35 -07:00
Alexandre Díaz 107bf807bc [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).
2023-09-25 07:40:35 -07:00
Alexandre Díaz 8100ec4899 [IMP] mail_tracking: Failed Messages to 12.0 2023-09-25 07:40:35 -07:00
Alexandre Díaz ce8f865e03 [IMP] mail_tracking: Convert 'partner_trackings' to dict 2023-09-25 07:40:35 -07:00
Alexandre Díaz 8ef81f2e01 [IMP] mail_tracking: Cc name & check if mail is Cc 2023-09-25 07:40:35 -07:00
David 8a52d2a98a [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.
2023-09-25 07:40:35 -07:00
Pedro M. Baeza c11f78f240 [FIX] mail_tracking: Show correctly blank image
Bad P2 > P3 conversion
2023-09-25 07:40:35 -07:00
Alexandre Díaz a4ab91b398 [IMP] mail_tracking: Adapt test to set (not order preserved) 2023-09-25 07:40:35 -07:00
Alexandre Díaz 40c31292ac [FIX] mail_tracking: Repeated suggested cc emails 2023-09-25 07:40:35 -07:00
Alexandre Díaz 270697712c [IMP] mail_tracking: Cc 2023-09-25 07:40:35 -07:00
ernesto d6d4142cd9 [MIG] mail_tracking: Migration to 12.0 2023-09-25 07:40:35 -07:00
David Vidal c2eda72bc0 [IMP] mail_tracking: email score performance (#299) 2023-09-25 07:40:35 -07:00
David 715618fcb0 [MIG] mail_tracking: Migration to 11.0 2023-09-25 07:40:35 -07:00
David Vidal 1898bb1743 [IMP] Shut mock exceptions up 2023-09-25 07:40:35 -07:00
Antonio Espinosa fc64f5ce1d Add access to portal/public user to his own email trackings 2023-09-25 07:40:35 -07:00
Antonio Espinosa d9e6e655dc [IMP] mail_tracking performance and bounce process (#103) 2023-09-25 07:40:35 -07:00
Damien Bouvy dcee7f8373 [MIG] mail_tracking: Migrated to 10.0 2023-09-25 07:40:35 -07:00
Antonio Espinosa be492793f3 [MIG] mail_tracking
* Improve tests
* Show trackings even if partner removed
* Disable CSRF protection to webhooks controllers
2023-09-25 07:40:35 -07:00
Antonio Espinosa a8b8a25a11 [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
2023-09-25 07:40:35 -07:00
Antonio Espinosa 0ddcb83ef2 [8.0][ADD] mail_tracking addon (#67)
* [ADD] mail_tracking addon

* Add description icon

* Fixes remarked

* Fix Travis error

* Remarks fixed
2023-09-25 07:40:35 -07:00