Commit Graph

323 Commits (bac73d64ae91a33151b1f1aef5e8e397bef19ed1)

Author SHA1 Message Date
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
oca-travis c1138b01bb [UPD] Update mail_tracking.pot 2023-09-25 07:40:35 -07:00
OCA Transbot 27cdbfc664 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 5011a588e6 [UPD] Update mail_tracking.pot 2023-09-25 07:40:35 -07:00
OCA-git-bot d98247b33f mail_tracking 14.0.1.1.1 2023-09-25 07:40:35 -07:00
Jorge Luis Quinteros 12562dda25 [FIX] Change operator to 'ilike' 2023-09-25 07:40:35 -07:00
OCA-git-bot a98f08963a mail_tracking 14.0.1.1.0 2023-09-25 07:40:35 -07:00
angelJuaGar 4a5b2a69c7 [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.
2023-09-25 07:40:35 -07:00
Jairo Llopis 28a54498fe [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
2023-09-25 07:40:35 -07:00
OCA-git-bot d4b3a787d8 [UPD] README.rst 2023-09-25 07:40:35 -07:00
oca-travis 2367f3fbb2 [UPD] Update mail_tracking.pot 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
Areeb Siddiqi 97cbeda338 [MIG] mail_tracking: Migration to 14.0 2023-09-25 07:40:35 -07:00
Areeb Siddiqi 5a096c4724 [IMP] mail_tracking: black, isort, prettier 2023-09-25 07:40:35 -07:00
OCA-git-bot 0cd62003dd mail_tracking 13.0.1.0.8 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
OCA Transbot 0ea24c9495 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: social-13.0/social-13.0-mail_tracking
Translate-URL: https://translation.odoo-community.org/projects/social-13-0/social-13-0-mail_tracking/
2023-09-25 07:40:35 -07:00
OCA-git-bot 170caa2b01 mail_tracking 13.0.1.0.7 2023-09-25 07:40:35 -07:00
oca-travis 21012d6dbd [UPD] Update mail_tracking.pot 2023-09-25 07:40:35 -07:00
Alexandre D. Díaz 615edd01ea [IMP] mail_tracking: Discuss failed messages: Only show confirmation if needed 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
Jairo Llopis f0bba0142b [FIX] pre-commit run -a 2023-09-25 07:40:35 -07:00
Alexandre D. Díaz f073590396 [IMP] Apply pre-commit changes: Resolve conflicts 2023-09-25 07:40:35 -07:00
Jairo Llopis ffa557162c [IMP] pre-commit run -a 2023-09-25 07:40:35 -07:00
OCA-git-bot c3ef63b9af mail_tracking 13.0.1.0.6 2023-09-25 07:40:35 -07:00
nmadhoc 6c742b521f [FIX] mail_tracking
When a user try to resend message gets an error stating that it's only allowed for users who belong to the Administration/Settings group
2023-09-25 07:40:35 -07:00
Wolfgang Pichler 8c51374370 [FIX] re.search will return None when nothing found. So we have to check for this 2023-09-25 07:40:35 -07:00
OCA Transbot e7d55e3fad Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: social-13.0/social-13.0-mail_tracking
Translate-URL: https://translation.odoo-community.org/projects/social-13-0/social-13-0-mail_tracking/
2023-09-25 07:40:35 -07:00
oca-travis d82bff7667 [UPD] Update mail_tracking.pot 2023-09-25 07:40:35 -07:00
OCA Transbot 7ceee298ca Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: social-13.0/social-13.0-mail_tracking
Translate-URL: https://translation.odoo-community.org/projects/social-13-0/social-13-0-mail_tracking/
2023-09-25 07:40:35 -07:00
OCA Transbot 5a67189edc Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: social-13.0/social-13.0-mail_tracking
Translate-URL: https://translation.odoo-community.org/projects/social-13-0/social-13-0-mail_tracking/
2023-09-25 07:40:35 -07:00
OCA-git-bot 1aab576571 mail_tracking 13.0.1.0.4 2023-09-25 07:40:35 -07:00
oca-travis ad10ce8046 [UPD] Update mail_tracking.pot 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
OCA Transbot 0987c69edc Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: social-13.0/social-13.0-mail_tracking
Translate-URL: https://translation.odoo-community.org/projects/social-13-0/social-13-0-mail_tracking/
2023-09-25 07:40:35 -07:00
OCA-git-bot 7156f279a3 mail_tracking 13.0.1.0.3 2023-09-25 07:40:35 -07:00
oca-travis e88edb93cc [UPD] Update mail_tracking.pot 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
OCA-git-bot 17cd59e500 mail_tracking 13.0.1.0.2 2023-09-25 07:40:35 -07:00
Uku Lagle a4979ede2f [FIX] mail_tracking: do not warn not found if already opened
The state will be 'opened' after first time email is opened. Each
successive open triggered warning, because state was already 'opened'
and thus did not match domain state in (sent, delivered).

Forward-port #d9ad3464
2023-09-25 07:40:35 -07:00
OCA-git-bot 6b39838aa6 [UPD] README.rst 2023-09-25 07:40:35 -07:00
OCA-git-bot de609a3c3d mail_tracking 13.0.1.0.1 2023-09-25 07:40:35 -07:00
Alexandre Díaz 25a6f0ac22 [FIX] mail_tracking: Changed injection method for 'failed_message_ids' field
Before this commit, some methods with views crashes trying to
process 'failed_message_ids' field.
After this commit the 'failed_message_ids' field description
is properly generated.
2023-09-25 07:40:35 -07:00
OCA Transbot 683851b476 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: social-13.0/social-13.0-mail_tracking
Translate-URL: https://translation.odoo-community.org/projects/social-13-0/social-13-0-mail_tracking/
2023-09-25 07:40:35 -07:00
oca-travis e9b446ad7a [UPD] Update mail_tracking.pot 2023-09-25 07:40:35 -07:00
OCA-git-bot 99ff431109 [UPD] README.rst 2023-09-25 07:40:35 -07:00
oca-travis 3b0f4d8dc6 [UPD] Update mail_tracking.pot 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
OCA-git-bot 3ff53ab1d2 mail_tracking 12.0.2.0.1 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
OCA-git-bot 064c7939ff mail_tracking 12.0.2.0.0 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 17f8d93879 [IMP] mail_tracking: translations 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
eduardgm 1fd5ec853a Translated using Weblate (Spanish)
Currently translated at 33.3% (29 of 87 strings)

Translation: social-12.0/social-12.0-mail_tracking
Translate-URL: https://translation.odoo-community.org/projects/social-12-0/social-12-0-mail_tracking/es/
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
OCA-git-bot d93ff00d0d mail_tracking 12.0.1.1.2 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
OCA-git-bot 15a5a2ad31 mail_tracking 12.0.1.1.1 2023-09-25 07:40:35 -07:00
Ihor 3e2fc692ef [FIX] Bug {TypeError: dict.message.hasEmailCc is not a function} during the creation of a new document. 2023-09-25 07:40:35 -07:00
OCA-git-bot 2784925a62 mail_tracking 12.0.1.1.0 2023-09-25 07:40:35 -07:00
Alexandre Díaz 592b9d12ca [MIG] mail_tracking: Adapt Cc to 12.0 2023-09-25 07:40:35 -07:00
Alexandre Díaz 270697712c [IMP] mail_tracking: Cc 2023-09-25 07:40:35 -07:00
Pedro M. Baeza d324aa1f04 [FIX] mail_tracking: Don't call write inside other write
Or infinite recursions will happen on other `write` overwrites, like the one that happens
on `mass_mailing_partner`.
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
eduardgm 3348f988b8 Translated using Weblate (Catalan)
Currently translated at 96.3% (79 of 82 strings)

Translation: social-11.0/social-11.0-mail_tracking
Translate-URL: https://translation.odoo-community.org/projects/social-11-0/social-11-0-mail_tracking/ca/
2023-09-25 07:40:35 -07:00
Pedro M. Baeza 8e652c4b19 [IMP] mail_tracking: Put button box at the end of the view
For giving more priority to other buttons like the invoices one.
2023-09-25 07:40:35 -07:00
Piotr Kowalski 97d6069d0d Fix README.rst images not visible in GitHub and Odoo
Closes #303
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
c2cdidier 7121b1f1f8 Translated using Weblate (French) [ci skip]
Currently translated at 100.0% (82 of 82 strings)

Translation: social-11.0/social-11.0-mail_tracking
Translate-URL: https://translation.odoo-community.org/projects/social-11-0/social-11-0-mail_tracking/fr/
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
Emanuel Cino 458e72d1c9 [FIX] mail_tracking js could break other modules using chat_manager 2023-09-25 07:40:35 -07:00
eLBati 210de915b1 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
2023-09-25 07:40:35 -07:00
Antonio Espinosa 5987c3f903 [FIX] mail_tracking: bugfixes (#199)
* [FIX] Only one data-odoo-tracking-email tag in each email
* [FIX] Get status even in multicompany instances
2023-09-25 07:40:35 -07:00
Carlos Dauden f0aff3bd59 [9.0][IMP] mail_tracking: Improve view with error details 2023-09-25 07:40:35 -07:00
David Vidal 1898bb1743 [IMP] Shut mock exceptions up 2023-09-25 07:40:35 -07:00
Pedro M. Baeza a564869578 [FIX] mail_tracking: Obtain outgoing server with sudo
As regular users can't access this object.
2023-09-25 07:40:35 -07:00
Juan Jose Scarafia a185584799 [FIX][9.0] partner buttons view on enterprise 2023-09-25 07:40:35 -07:00
Antonio Espinosa e662b4bff9 [FIX] Sender label is repeated in search fields 2023-09-25 07:40:35 -07:00
Antonio Espinosa 7c9aabebfd [9.0][FIX][mail_tracking] Control exception when mail_message was removed (#132) 2023-09-25 07:40:35 -07:00
Antonio Espinosa 12b34c5347 [8.0][FIX][mail_tracking] Use event recipient address to find partners and contacts to bounce (#133) 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 4dce9c0104 [IMP] mail_tracking: Allow to define a custom mail_tracking base url 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
Pedro M. Baeza 7aaabd6e44 [MIG] Make modules uninstallable 2023-09-25 07:40:35 -07:00
Pedro M. Baeza cf37bee08a [FIX] mail_tracking: Typo 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 59001b4af5 [FIX] Update email_score when email changes 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