Commit Graph

1217 Commits (13a9674ba75055b636b216ebd3a1c1708b48bc8c)

Author SHA1 Message Date
nguyenhk 4014e2b324 [MIG] mail_tracking_mass_mailing: Migration to 16.0 2024-07-05 12:03:09 +02:00
sergio-teruel 7d3e6c0aab [MIG] mail_tracking_mass_mailing: Migration to v15.0 2024-07-05 12:03:09 +02:00
Akim Juillerat 6d4721afe8 mail_tracking_mass_mailing: Set traces in error according to tracking
If an exception is caught by ir.mail_server.send_email in mail_tracking module,
the mail.tracking.email record will appear in error but the related mailing
trace would still appear as sent because mail.mail._postprocess_sent_message is
called without any failure_type in mail.mail._send in the mail module (as Exception
is not raised after being caught in mail_tracking module).

Since _postprocess_sent_message method not only sets the mailing.trace state in
mass_mailing module but can also delete the mail.mail records in mail module,
we need to ensure the mailing.trace is written accordingly to the tracking here,
and avoid having the mass_mailing module set a 'sent' status if we had an exception,
hence the usage of a context key to ignore possible writes.
2024-07-05 12:03:09 +02:00
Carlos Roca 2735315c5b [MIG] mail_tracking_mass_mailing: Migration to v14.0 2024-07-05 12:03:09 +02:00
Jairo Llopis 1c27abd15b [IMP] pre-commit run -a 2024-07-05 12:01:29 +02:00
Katherine Zaoral 1e79a33e33 [MIG] mail_tracking_mass_mailing: Migration to 13.0
* Change references to mail_mail_statistics model with mail_trace
* Change references to mail.mass_mailing model with mailing.mailing
* Change reference to statistics_ids field with mailing_trace_ids
* Change reference to send_mail method with action_send_mail
* Replace mailing.mailing name for required subject field
* fix view reference not_blacklisted with filter_not_email_bl
* fix not-stored compute, set value for all the records
2024-07-05 12:01:29 +02:00
Katherine Zaoral 07114f2600 [IMP] mail_tracking_mass_mailing: black, isort, prettier 2024-07-05 12:01:29 +02:00
ernesto b37ecf1332 [MIG] mail_tracking_mass_mailing: Migration to 12.0
Update translation files

    [UPD] Update mail_tracking_mass_mailing.pot

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

    Translation: social-12.0/social-12.0-mail_tracking_mass_mailing
    Translate-URL: https://translation.odoo-community.org/projects/social-12-0/social-12-0-mail_tracking_mass_mailing/

[UPD] README.rst

Translated using Weblate (Portuguese)

    Currently translated at 94.7% (18 of 19 strings)

    Translation: social-12.0/social-12.0-mail_tracking_mass_mailing
    Translate-URL: https://translation.odoo-community.org/projects/social-12-0/social-12-0-mail_tracking_mass_mailing/pt/

Translated using Weblate (Slovenian)

    Currently translated at 100.0% (19 of 19 strings)

    Translation: social-12.0/social-12.0-mail_tracking_mass_mailing
    Translate-URL: https://translation.odoo-community.org/projects/social-12-0/social-12-0-mail_tracking_mass_mailing/sl/
2024-07-05 12:01:29 +02:00
Pedro M. Baeza 29630f4496 [MIG] mail_tracking_mass_mailing: Migration to 11.0
* Standard procedure
* Adapt tests
* New README by fragments

[UPD] README.rst
2024-07-05 12:01:29 +02:00
Jairo Llopis 7815746e91 [FIX] mail_tracking_mass_mailing: Integration tests (#258)
Testing this addon failed if i.e. `mass_mailing_list_dynamic` was installed before.

Moving tests to post-install mode fixes integration tests.
2024-07-05 12:01:29 +02:00
David Vidal 1f6f64b4b6 [10.0] mail_tracking_mass_mailing: Migration to 10.0 2024-07-05 12:01:29 +02:00
cubells cec74fd79b mail_tracking_mass_mailing module
OCA Transbot updated translations from Transifex
2024-07-05 12:01:29 +02:00
Antonio Espinosa e7548c9f5b mail_tracking_mass_mailing (#78)
[ADD] mail_tracking_mass_mailing

==============================
Mail tracking for mass mailing
==============================

Links mail statistics objects with mail tracking objects.

Installation
============

This addon will be automatically installed when 'mail_tracking' and
'mass_mailing' are both installed

Usage
=====

From mail statistic object, you can see:
- Email tracking state
- Email related tracking object
- Email related tracking events

From mass mailing contact, you can see:
- Email score, in order to clean up your lists from bad score emails

As a bonus feature, you have a new checkbox 'Avoid resend' in mass mailing,
in order to not send twice the same email to the same recipient. This is very
useful when you want to resend the mass mailing after changing selection
recipients. Notice that recipient selection could be a domain over a model, so
result ids could change over the time. With this flag you can send
the same email several times but only once to each recipient.

OCA Transbot updated translations from Transifex
2024-07-05 12:01:29 +02:00
OCA-git-bot 2d458df82a [BOT] post-merge updates 2024-07-03 10:37:35 +00:00
oca-ci a5e52d8606 [UPD] Update mail_tracking.pot 2024-07-03 10:30:38 +00:00
OCA-git-bot fe541915ff Merge PR #1367 into 17.0
Signed-off-by pedrobaeza
2024-07-03 10:28:13 +00:00
David e981f3cc6d [MIG] mail_tracking: Migration to 17.0
TT49060
2024-06-11 10:08:14 +02:00
Pedro M. Baeza 549006c5dc [IMP] mail_tracking: pre-commit auto fixes 2024-06-11 09:54:49 +02:00
Holger Brunn b293ba54de [FIX] mail_tracking: be closer to what Odoo does in a nodb environment 2024-06-11 09:51:53 +02:00
Holger Brunn b5fa4255fc [IMP] mail_tracking: Give example that actually works in readme 2024-06-11 09:51:53 +02:00
Vincent Hatakeyama c4addf4028 Translated using Weblate (French)
Currently translated at 100.0% (125 of 125 strings)

Translation: social-16.0/social-16.0-mail_tracking
Translate-URL: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mail_tracking/fr/
2024-06-11 09:51:53 +02:00
mymage 0f139e608d 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/
2024-06-11 09:51:53 +02:00
Adriano Prado 0c71ca5a52 Translated using Weblate (Portuguese (Brazil))
Currently translated at 82.4% (103 of 125 strings)

Translation: social-16.0/social-16.0-mail_tracking
Translate-URL: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mail_tracking/pt_BR/
2024-06-11 09:51:53 +02:00
NiChrDeuse ab323e561a [16.0][FIX] mail_tracking debug mode error 2024-06-11 09:51:53 +02:00
mymage 175aadff66 Translated using Weblate (Italian)
Currently translated at 27.2% (34 of 125 strings)

Translation: social-16.0/social-16.0-mail_tracking
Translate-URL: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mail_tracking/it/
2024-06-11 09:51:53 +02:00
payen000 c8e5ae90fc [FIX] mail_tracking: validated mailbox when computing isInFailedDiscuss 2024-06-11 09:51:53 +02:00
Ivorra78 41ccc411f9 Translated using Weblate (Spanish)
Currently translated at 100.0% (125 of 125 strings)

Translation: social-16.0/social-16.0-mail_tracking
Translate-URL: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mail_tracking/es/
2024-06-11 09:51:53 +02:00
payen000 f25a4a31e6 [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`.
2024-06-11 09:51:53 +02:00
filoquin e0fee46fa9 [MIG] mail_tracking: Migration to 16.0 2024-06-11 09:51:53 +02:00
David 0de49f2acd [FIX] mail_tracking: failed messages in thread
- Recover the failed messages box in the mail.thread
- Fix failed message box template issues
- Remove dead code
- Fix send_email() method signature
- Fix patch methods js files paths
- Update roadmap

TT44683
2024-06-11 09:51:53 +02:00
dhx 2fe46dd8e1 [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
2024-06-11 09:51:53 +02:00
David aea5fa7548 [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
2024-06-11 09:51:53 +02:00
David e0a4c5b1fe [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
2024-06-11 09:51:53 +02:00
Thierry Ducrest 4d6d8cbb17 Fix mail tracking bounce notification not logged
This is to resolve the following issue:

* https://github.com/OCA/social/issues/1121
2024-06-11 09:51:53 +02:00
Francesco Foresti 1260333caf 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/
2024-06-11 09:51:53 +02:00
Weblate c43890993b 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/
2024-06-11 09:51:53 +02:00
oca-ci aed012d07f [UPD] Update mail_tracking.pot 2024-06-11 09:51:53 +02:00
sergio-teruel 89e10b9310 [FIX] mail_tracking: Crash to add malformed emails to recipients suggestions 2024-06-11 09:51:53 +02:00
jb 4912eb5389 use keyword arguments in build_email to comply with portal tests 2024-06-11 09:51:53 +02:00
David f9aa7c1fd4 [FIX] mail_tracking: js linter warnings 2024-06-11 09:51:53 +02:00
Stephane Mangin 8301727ee1 [IMP] mail_tracking: remove legacy hooks 2024-06-11 09:51:53 +02:00
david 4cc3d4dc32 [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
2024-06-11 09:51:53 +02:00
sugapablo b760f0780e [FIX] mail_tracking: error when filtering by "Sent" 2024-06-11 09:51:53 +02:00
Jairo Llopis 2e2158594c [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
2024-06-11 09:51:53 +02:00
David 84535f3629 [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
2024-06-11 09:51:53 +02:00
David 38d233e9ff [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
2024-06-11 09:51:53 +02:00
Jasmin Solanki 5e9998e324 [MIG] mail_tracking: Migration to 15.0 2024-06-11 09:51:53 +02:00
Jasmin Solanki 5c383b4724 [IMP] mail_tracking: black, isort, prettier 2024-06-11 09:51:53 +02:00
Fernanda Hernández 773ba68bf6 [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`.
2024-06-11 09:51:53 +02:00
Fernanda Hernández 4e20cb65aa [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)
2024-06-11 09:51:53 +02:00