Commit Graph

136 Commits (daee70150f413db72b69f99c2db5500beecb8a10)

Author SHA1 Message Date
OCA-git-bot 1e46b7be39 mail_tracking 15.0.2.0.1 2023-02-12 09:16:18 +00:00
OCA-git-bot ebc8324aa6 Merge PR #1053 into 15.0
Signed-off-by pedrobaeza
2023-02-12 09:12:56 +00:00
Weblate e0bd577e79 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/
2023-02-02 14:24:10 +00:00
OCA-git-bot 6488ddc52b mail_tracking 15.0.2.0.0 2023-02-02 14:23:55 +00:00
oca-ci 4e76c21899 [UPD] Update mail_tracking.pot 2023-02-02 14:20:03 +00:00
OCA-git-bot fd900e2bb9 Merge PR #1057 into 15.0
Signed-off-by pedrobaeza
2023-02-02 14:16:08 +00:00
David e996d10a13 [FIX] mail_tracking: js linter warnings 2023-01-31 18:30:11 +01:00
Weblate 03c884b2ca 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/
2023-01-31 17:28:08 +00:00
OCA-git-bot 231926dfcb mail_tracking 15.0.1.1.0 2023-01-31 17:27:51 +00:00
oca-ci e9dcbce7f6 [UPD] Update mail_tracking.pot 2023-01-31 17:23:32 +00:00
Stephane Mangin 4cd143e729 [IMP] mail_tracking: remove legacy hooks 2023-01-31 18:21:32 +01: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
sugapablo 39628af6d6 [FIX] mail_tracking: error when filtering by "Sent" 2023-01-31 18:16:36 +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 062f38577b [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
2023-01-31 18:00:05 +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
OCA Transbot f4ad4ec7d6 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/
2022-08-30 15:18:49 +00:00
oca-ci ebb5a3065f [UPD] Update mail_tracking.pot 2022-08-30 15:15:10 +00:00
OCA-git-bot c7d12addea mail_tracking 15.0.1.0.2 2022-08-23 16:16:11 +00:00
EAJGlobal 836c7d0981
Fixed Deprecated Warning 2022-08-23 16:05:03 +00:00
OCA-git-bot 07ddd79a93 mail_tracking 15.0.1.0.1 2022-05-11 20:56:49 +00:00
OCA-git-bot cd97e02f71 [UPD] README.rst 2022-05-11 20:56:49 +00:00
oca-ci 0a42a8e7ab [UPD] Update mail_tracking.pot 2022-05-11 20:53:42 +00:00
Jasmin Solanki 680eee8074 [MIG] mail_tracking: Migration to 15.0 2022-04-20 14:46:22 +05:30
Jasmin Solanki 021689d073 [IMP] mail_tracking: black, isort, prettier 2022-04-20 14:46:22 +05:30
OCA-git-bot a4f3acc3cf mail_tracking 14.0.2.0.2 2022-04-20 14:46:22 +05:30
Fernanda Hernández 1f3d4579de [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`.
2022-04-20 14:46:22 +05:30
OCA Transbot ce7b4209dd Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: social-14.0/social-14.0-mail_tracking
Translate-URL: https://translation.odoo-community.org/projects/social-14-0/social-14-0-mail_tracking/
2022-04-20 14:46:22 +05:30
OCA-git-bot 9dc2f8e569 mail_tracking 14.0.2.0.1 2022-04-20 14:46:22 +05:30
oca-travis aca7276781 [UPD] Update mail_tracking.pot 2022-04-20 14:46:22 +05:30
Fernanda Hernández 71fb071154 [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)
2022-04-20 14:46:22 +05:30
OCA Transbot 146323186a Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: social-14.0/social-14.0-mail_tracking
Translate-URL: https://translation.odoo-community.org/projects/social-14-0/social-14-0-mail_tracking/
2022-04-20 14:46:22 +05:30
OCA-git-bot 6c34951e0f mail_tracking 14.0.2.0.0 2022-04-20 14:46:22 +05:30
OCA-git-bot 88dbebe55d [UPD] README.rst 2022-04-20 14:46:22 +05:30
oca-travis 1237644f79 [UPD] Update mail_tracking.pot 2022-04-20 14:46:22 +05:30
houssine 53cc2ff96f [PEP8] pre-commit 2022-04-20 14:46:22 +05:30
OCA Transbot aba9ad7561 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: social-14.0/social-14.0-mail_tracking
Translate-URL: https://translation.odoo-community.org/projects/social-14-0/social-14-0-mail_tracking/
2022-04-20 14:46:22 +05:30
oca-travis fe723fd777 [UPD] Update mail_tracking.pot 2022-04-20 14:46:22 +05:30
houssine d45941df4d [PORT] porting js code to comply with OWL 2022-04-20 14:46:22 +05:30
OCA Transbot 881c70f7dd Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: social-14.0/social-14.0-mail_tracking
Translate-URL: https://translation.odoo-community.org/projects/social-14-0/social-14-0-mail_tracking/
2022-04-20 14:46:22 +05:30
oca-travis 792eff8803 [UPD] Update mail_tracking.pot 2022-04-20 14:46:21 +05:30
OCA Transbot 5d015cdbb5 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: social-14.0/social-14.0-mail_tracking
Translate-URL: https://translation.odoo-community.org/projects/social-14-0/social-14-0-mail_tracking/
2022-04-20 14:46:21 +05:30
oca-travis 546fd54c55 [UPD] Update mail_tracking.pot 2022-04-20 14:46:21 +05:30
OCA-git-bot cee0115fc7 mail_tracking 14.0.1.1.1 2022-04-20 14:46:21 +05:30
Jorge Luis Quinteros 03f26753ee [FIX] Change operator to 'ilike' 2022-04-20 14:46:21 +05:30
OCA-git-bot 6f24099a07 mail_tracking 14.0.1.1.0 2022-04-20 14:46:21 +05:30
angelJuaGar f2adbca256 [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.
2022-04-20 14:46:21 +05:30
Jairo Llopis 814329c55a [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
2022-04-20 14:46:21 +05:30
OCA-git-bot 365e8a3c71 [UPD] README.rst 2022-04-20 14:46:21 +05:30
oca-travis 561dca29d7 [UPD] Update mail_tracking.pot 2022-04-20 14:46:21 +05:30