Commit Graph

1288 Commits (2eeac1e86df6d679c8085cc69a01fbe32aff03f9)

Author SHA1 Message Date
Jairo Llopis ec5ef9769f [FIX] mail_tracking_mailgun: Avoid errors without event
When this method is called without an event (a.k.a. `event=None`), this method produces the following error:

```
Traceback (most recent call last):
  File "/opt/odoo/auto/addons/mail/models/mail_mail.py", line 278, in send
    res = IrMailServer.send_email(msg, mail_server_id=mail.mail_server_id.id)
  File "/opt/odoo/auto/addons/mail_tracking/models/ir_mail_server.py", line 88, in send_email
    tracking_email.smtp_error(self, smtp_server_used, e)
  File "/opt/odoo/auto/addons/mail_tracking/models/mail_tracking_email.py", line 213, in smtp_error
    self.sudo()._partners_email_bounced_set('error')
  File "/opt/odoo/auto/addons/mail_tracking/models/mail_tracking_email.py", line 203, in
_partners_email_bounced_set
    ]).email_bounced_set(self, reason, event=event)
  File "/opt/odoo/auto/addons/mail_tracking_mailgun/models/res_partner.py", line 22, in
email_bounced_set
    self._email_bounced_set(reason, event)
  File "/opt/odoo/auto/addons/mail_tracking_mailgun/models/res_partner.py", line 33, in
_email_bounced_set
    event['Message-Id'] or '') TypeError: 'NoneType' object has no attribute '__getitem__'
```

So, we now assume we do not always have an event.
2023-11-02 12:33:26 +01:00
David 01c4a5869c [10.0][FIX] mail_tracking_mailgun: Avoid key dict errors 2023-11-02 12:33:26 +01:00
OCA Transbot 5d417cca4b OCA Transbot updated translations from Transifex 2023-11-02 12:33:26 +01:00
David e463b1107f [10.0][IMP] mail_tracking_mailgun: add partner mail checks 2023-11-02 12:33:26 +01:00
OCA Transbot 09d0de1d3c OCA Transbot updated translations from Transifex 2023-11-02 12:33:26 +01:00
David Vidal 308a4a6b7a [IMP] mute logger on tests error responses so Travis doesn't fail 2023-11-02 12:33:26 +01:00
OCA Transbot 7b26c946ff OCA Transbot updated translations from Transifex 2023-11-02 12:33:26 +01:00
Rafael Blasco bc18b60955 Add Contributors
Both Carlos and me have work a lot in this module, maybe not coding but much testing and definition in usability
2023-11-02 12:33:26 +01:00
OCA Transbot 7c658c9384 OCA Transbot updated translations from Transifex 2023-11-02 12:33:26 +01:00
Damien Bouvy 1fcc22e769 [MIG] mail_tracking_mailgun: Migrated to 10.0 2023-11-02 12:33:26 +01:00
Pedro M. Baeza e9a8427509 [MIG] Rename manifest files 2023-11-02 12:33:26 +01:00
Pedro M. Baeza 1db105af57 [MIG] Make modules uninstallable 2023-11-02 12:33:26 +01:00
Antonio Espinosa a38be6723d [MIG] mail_tracking_mailgun 2023-11-02 12:33:26 +01:00
Antonio Espinosa 03e7abdceb [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-11-02 12:33:26 +01:00
Antonio Espinosa bc509596db [ADD] mail_tracking_mailgun 2023-11-02 12:33:26 +01:00
Antonio Espinosa a649f42087 OCA Transbot updated translations from Transifex 2023-11-02 12:33:26 +01:00
OCA-git-bot a73b661b5b [BOT] post-merge updates 2023-10-31 20:33:37 +00:00
oca-ci 20bba046e9 [UPD] Update mail_tracking_mass_mailing.pot 2023-10-31 20:30:04 +00:00
OCA-git-bot 7b6f20e94e Merge PR #1248 into 16.0
Signed-off-by pedrobaeza
2023-10-31 20:26:50 +00:00
David e450213240 [MIG] mail_tracking_mass_mailing: finish migration to 16.0
TT44208
2023-10-31 21:25:17 +01:00
nguyenhk 4273a174c6 [MIG] mail_tracking_mass_mailing: Migration to 16.0 2023-10-31 17:03:17 +01:00
nguyenhk dc423ca78c [IMP] mail_tracking_mass_mailing: black, isort, prettier 2023-10-31 17:03:17 +01:00
Weblate e3fb704bbd Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: social-15.0/social-15.0-mail_tracking_mass_mailing
Translate-URL: https://translation.odoo-community.org/projects/social-15-0/social-15-0-mail_tracking_mass_mailing/
2023-10-31 17:03:17 +01:00
oca-ci 854f7c4d48 [UPD] Update mail_tracking_mass_mailing.pot 2023-10-31 17:03:17 +01:00
sergio-teruel 68fed08e46 [FIX] mail_tracking: permissions. fw-port 2023-10-31 17:03:17 +01:00
sergio-teruel 0520c8651a [MIG] mail_tracking_mass_mailing: Migration to v15.0 2023-10-31 17:03:17 +01:00
OCA-git-bot 8d6c2c4f97 mail_tracking_mass_mailing 14.0.1.0.1 2023-10-31 17:03:17 +01:00
Akim Juillerat 5948f1eade 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.
2023-10-31 17:03:17 +01:00
OCA-git-bot 0b293d0554 [UPD] README.rst 2023-10-31 17:03:17 +01:00
oca-travis 8e6097e71a [UPD] Update mail_tracking_mass_mailing.pot 2023-10-31 17:03:17 +01:00
Carlos Roca 45bd999b2e [MIG] mail_tracking_mass_mailing: Migration to v14.0 2023-10-31 17:03:17 +01:00
Jairo Llopis 46f0955911 [IMP] pre-commit run -a 2023-10-31 17:03:17 +01:00
Katherine Zaoral ce98309f25 [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
2023-10-31 17:03:17 +01:00
Katherine Zaoral 3a360254b1 [IMP] mail_tracking_mass_mailing: black, isort, prettier 2023-10-31 17:03:17 +01:00
ernesto be01fcd612 [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/
2023-10-31 17:03:17 +01:00
Pedro M. Baeza 7bdfd577e8 [MIG] mail_tracking_mass_mailing: Migration to 11.0
* Standard procedure
* Adapt tests
* New README by fragments

[UPD] README.rst
2023-10-31 17:03:17 +01:00
Jairo Llopis d5684c7fea [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.
2023-10-31 17:03:17 +01:00
David Vidal 72cfa5ac06 [10.0] mail_tracking_mass_mailing: Migration to 10.0 2023-10-31 17:03:17 +01:00
cubells df70ce15fa mail_tracking_mass_mailing module
OCA Transbot updated translations from Transifex
2023-10-31 17:03:17 +01:00
Antonio Espinosa da1d864e5c 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
2023-10-31 17:03:17 +01:00
oca-git-bot 82950f1096 [IMP] update dotfiles 2023-10-27 23:25:13 +02:00
Weblate 190fc700c2 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: social-16.0/social-16.0-mail_activity_team
Translate-URL: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mail_activity_team/
2023-10-18 10:03:11 +00:00
Weblate 220dc32fa6 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: social-16.0/social-16.0-mail_activity_done
Translate-URL: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mail_activity_done/
2023-10-18 10:03:11 +00:00
Weblate 3c25d885c4 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: social-16.0/social-16.0-mail_optional_follower_notification
Translate-URL: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mail_optional_follower_notification/
2023-10-18 10:03:11 +00:00
Weblate 324eb6c6ef Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

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/
2023-10-18 10:03:10 +00:00
Weblate 9c88b21c67 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: social-16.0/social-16.0-base_search_mail_content
Translate-URL: https://translation.odoo-community.org/projects/social-16-0/social-16-0-base_search_mail_content/
2023-10-18 10:03:08 +00:00
Weblate f5a2ad7f47 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: social-16.0/social-16.0-mail_attach_existing_attachment
Translate-URL: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mail_attach_existing_attachment/
2023-10-18 10:03:06 +00:00
Weblate 517e6f4e30 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: social-16.0/social-16.0-mail_optional_autofollow
Translate-URL: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mail_optional_autofollow/
2023-10-18 10:03:06 +00:00
OCA-git-bot d7b9b92a1c [BOT] post-merge updates 2023-10-18 10:02:51 +00:00
oca-ci 54af8ee584 [UPD] Update mail_tracking.pot 2023-10-18 09:59:29 +00:00