Commit Graph

767 Commits (b79c30f9299d1e01e9f9b175ce08a67c3bb640f1)

Author SHA1 Message Date
David b79c30f929 [FIX] mail_tracking: allowed trackings compute
In the forward port of the permission check, a column was dropped from
the tuple, but the following code wasn't adapted to the new tuple
length. For clarity sake we also name the tuple unpacking into proper
variables.

TT43453
2023-09-25 07:40:36 -07:00
OCA-git-bot 869f25762b mail_tracking 15.0.2.0.4 2023-09-25 07:40:36 -07:00
David 2316c3fe83 [FIX] mail_tracking: thread permissions
If a user tries to read a thread on a record and one message is from a
partner on which he has no permissions, there will be an exception as
this method tries to fetch info from such partner.

TT43075
2023-09-25 07:40:36 -07:00
OCA-git-bot f9964582a2 mail_tracking 15.0.2.0.3 2023-09-25 07:40:35 -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
Francesco Foresti 804ad3a205 Translated using Weblate (Italian)
Currently translated at 29.8% (34 of 114 strings)

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/it/
2023-09-25 07:40:35 -07:00
Weblate 0a13c84bd1 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-09-25 07:40:35 -07:00
oca-ci 9fe9f2dc51 [UPD] Update mail_tracking.pot 2023-09-25 07:40:35 -07:00
mymage 4e3dd4dedf Translated using Weblate (Italian)
Currently translated at 29.8% (34 of 114 strings)

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/it/
2023-09-25 07:40:35 -07:00
OCA-git-bot 75bd3453ff mail_tracking 15.0.2.0.2 2023-09-25 07:40:35 -07:00
sergio-teruel 960a23f4fc [FIX] mail_tracking: Crash to add malformed emails to recipients suggestions 2023-09-25 07:40:35 -07:00
OCA-git-bot e789ac61aa mail_tracking 15.0.2.0.1 2023-09-25 07:40:35 -07:00
jb 9bb48ba637 use keyword arguments in build_email to comply with portal tests 2023-09-25 07:40:35 -07:00
Weblate 54ff0b30b1 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-09-25 07:40:35 -07:00
OCA-git-bot 3621a7dcf1 mail_tracking 15.0.2.0.0 2023-09-25 07:40:35 -07:00
oca-ci e6682d404b [UPD] Update mail_tracking.pot 2023-09-25 07:40:35 -07:00
David 764e094a34 [FIX] mail_tracking: js linter warnings 2023-09-25 07:40:35 -07:00
Weblate 3d5e49f626 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-09-25 07:40:35 -07:00
OCA-git-bot 4f1365100e mail_tracking 15.0.1.1.0 2023-09-25 07:40:35 -07:00
oca-ci 434ba3559c [UPD] Update mail_tracking.pot 2023-09-25 07:40:35 -07:00
Stephane Mangin 60ab6f7109 [IMP] mail_tracking: remove legacy hooks 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
sugapablo cfda85ab36 [FIX] mail_tracking: error when filtering by "Sent" 2023-09-25 07:40:35 -07:00
Jairo Llopis 003ee3ee10 [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-09-25 07:40:35 -07:00
David 8b78a72c31 [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-09-25 07:40:35 -07:00
David afe6220fe3 [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-09-25 07:40:35 -07:00
OCA Transbot 9c98cea6f8 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-09-25 07:40:35 -07:00
oca-ci c12a553fc8 [UPD] Update mail_tracking.pot 2023-09-25 07:40:35 -07:00
OCA-git-bot 06244fe174 mail_tracking 15.0.1.0.2 2023-09-25 07:40:35 -07:00
EAJGlobal 921f5eb0a8 Fixed Deprecated Warning 2023-09-25 07:40:35 -07:00
OCA-git-bot 8df1d994ce mail_tracking 15.0.1.0.1 2023-09-25 07:40:35 -07:00
OCA-git-bot fb18d2014d [UPD] README.rst 2023-09-25 07:40:35 -07:00
oca-ci 9dfa28a1cb [UPD] Update mail_tracking.pot 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
Jasmin Solanki 90d158f1a7 [IMP] mail_tracking: black, isort, prettier 2023-09-25 07:40:35 -07:00
OCA-git-bot 3f894af21a mail_tracking 14.0.2.0.2 2023-09-25 07:40:35 -07:00
Fernanda Hernández 02203de937 [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`.
2023-09-25 07:40:35 -07:00
OCA Transbot c92249d53b 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/
2023-09-25 07:40:35 -07:00
OCA-git-bot c024f09e90 mail_tracking 14.0.2.0.1 2023-09-25 07:40:35 -07:00
oca-travis 04b059a2ad [UPD] Update mail_tracking.pot 2023-09-25 07:40:35 -07:00
Fernanda Hernández 24a9f4a099 [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)
2023-09-25 07:40:35 -07:00
OCA Transbot e95c476f5a 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/
2023-09-25 07:40:35 -07:00
OCA-git-bot e00560846e mail_tracking 14.0.2.0.0 2023-09-25 07:40:35 -07:00
OCA-git-bot d148af0cf6 [UPD] README.rst 2023-09-25 07:40:35 -07:00
oca-travis ccd0503e19 [UPD] Update mail_tracking.pot 2023-09-25 07:40:35 -07:00
houssine 2c35e9bede [PEP8] pre-commit 2023-09-25 07:40:35 -07:00
OCA Transbot 73a64469a2 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/
2023-09-25 07:40:35 -07:00
oca-travis efe3dcbc74 [UPD] Update mail_tracking.pot 2023-09-25 07:40:35 -07:00
houssine ec8b389096 [PORT] porting js code to comply with OWL 2023-09-25 07:40:35 -07:00
OCA Transbot 998b51f5d9 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/
2023-09-25 07:40:35 -07:00