Commit Graph

107 Commits (2bc83633ea63be3c870b12c85ef5b0826f13ac9c)

Author SHA1 Message Date
Antonio Espinosa 2bc83633ea [ADD] mass_mailing_custom_unsubscribe addon 2018-06-11 16:46:50 +02:00
Pedro M. Baeza c631f91b52
Merge pull request #280 from Tecnativa/11.0-PR-mail_tracking_mailgun-sudo-parameter
[11.0][FIX] mail_tracking_mailgun: Read config parameters with sudo
2018-05-30 10:43:54 +02:00
Sergio Teruel Albert 0d24374876 [11.0][FIX] mail_tracking_mailgun: Read config parameters with sudo 2018-05-30 10:22:19 +02:00
OCA Git Bot 8b976d2a54 [ADD] setup.py 2018-05-16 05:27:57 +02:00
Pedro M. Baeza 057aa7bb65
Merge pull request #250 from celm1990/11.0-mig-email_template_qweb
[11][MIG] email_template_qweb: Migration to 11.0
2018-05-15 16:57:27 +02:00
celm1990 80436ac23e [11][MIG] email_template_qweb: Migration to 11.0 2018-05-15 16:33:44 +02:00
OCA Transbot 731d0311b7 OCA Transbot updated translations from Transifex 2018-05-15 16:33:44 +02:00
Pedro M. Baeza 67a4bab110 [FIX] email_template_qweb: Decode body when encoded
If the result is of type unicode, render method encodes it in utf-8.
We need to decode it in that case so that the rendering results correct.
2018-05-15 16:33:44 +02:00
Damien Bouvy 33c06448a7 [MIG] email_template_qweb: Migrated to 10.0 2018-05-15 16:33:43 +02:00
Laurent Mignon (ACSONE) 55fa0d078e [FIX] Call to generate_email can be done with a list of ids or only one id (#65)
fixes #64
2018-05-15 16:33:09 +02:00
Dave Lasley 9b83f6f182 [ADD] email_template_qweb 2018-05-15 16:33:09 +02:00
Pedro M. Baeza 0311dfda03
Merge pull request #270 from Tecnativa/11.0-fix-mail_tracking_mailgun-partner-form
[FIX] mail_trackin_mailgun: partner form
2018-05-11 18:09:10 +02:00
David 6b924706c7 [FIX] mail_trackin_mailgun: partner form
- Some res.partner form fields were not properly render due to this
module inherited view.
2018-05-11 17:31:38 +02:00
OCA Git Bot 8b268c9edf [ADD] setup.py 2018-05-10 05:22:50 +02:00
David Vidal 9d5d1bcbbc [FIX] mail_tracking_mailgun: json.load() won't swallow bytes (#269)
- json.load() in python under 3.6 doesn't support binary input.
- https://docs.python.org/3/whatsnew/3.6.html#json
- This way, we let requests to decode the response itself.
2018-05-09 21:28:41 +02:00
Pedro M. Baeza 6a65b4a997
Merge pull request #268 from Tecnativa/11.0-mig-mail_tracking_mailgun
[MIG] mail_tracking_mailgun: Migration to 11.0
2018-05-09 09:35:43 +02:00
OCA Git Bot c966351e78 [ADD] setup.py 2018-05-09 05:23:08 +02:00
David bf68b260a3 [MIG] mail_tracking_mailgun: Migration to 11.0 2018-05-08 18:26:49 +02:00
OCA Transbot e4b1fd7583 OCA Transbot updated translations from Transifex 2018-05-08 18:26:49 +02:00
David 7f9dccdd05 [IMP] mail_tracking_mailgun: validation auto check
- Configurable partner email auto check.
2018-05-08 18:26:49 +02:00
David 92aeb61f39 [FIX] mail_tracking_mailgun: manual sync gets events from other recipients 2018-05-08 18:26:49 +02:00
Pedro M. Baeza 82fce5785c [FIX] mail_tracking_mailgun: Missing error in test 2018-05-08 18:26:49 +02:00
Pedro M. Baeza 5aa0e87e34 [FIX] mail_tracking_mailgun: Message error on bounce 2018-05-08 18:26:49 +02:00
OCA Transbot c84cb225ee OCA Transbot updated translations from Transifex 2018-05-08 18:26:49 +02:00
Jairo Llopis 54d9eb16a6 [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.
2018-05-08 18:26:49 +02:00
David 5d38ff8540 [10.0][FIX] mail_tracking_mailgun: Avoid key dict errors 2018-05-08 18:26:49 +02:00
OCA Transbot 929c4df87d OCA Transbot updated translations from Transifex 2018-05-08 18:26:49 +02:00
David 2957581fdb [10.0][IMP] mail_tracking_mailgun: add partner mail checks 2018-05-08 18:26:49 +02:00
OCA Transbot 667edfd8d7 OCA Transbot updated translations from Transifex 2018-05-08 18:26:49 +02:00
David Vidal b93c01f908 [IMP] mute logger on tests error responses so Travis doesn't fail 2018-05-08 18:26:49 +02:00
OCA Transbot 84e9ae93ce OCA Transbot updated translations from Transifex 2018-05-08 18:26:49 +02:00
Rafael Blasco 5db6959081 Add Contributors
Both Carlos and me have work a lot in this module, maybe not coding but much testing and definition in usability
2018-05-08 16:39:07 +02:00
OCA Transbot 6d76181020 OCA Transbot updated translations from Transifex 2018-05-08 16:39:07 +02:00
Damien Bouvy b4b899e373 [MIG] mail_tracking_mailgun: Migrated to 10.0 2018-05-08 16:39:07 +02:00
Pedro M. Baeza 4c59cc9b46 [MIG] Rename manifest files 2018-05-08 16:39:07 +02:00
Pedro M. Baeza 26b70dbb33 [MIG] Make modules uninstallable 2018-05-08 16:39:07 +02:00
Antonio Espinosa 3d89ee6f6e [MIG] mail_tracking_mailgun 2018-05-08 16:39:07 +02:00
Antonio Espinosa 62a93e474b [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
2018-05-08 16:39:07 +02:00
Antonio Espinosa 6204b2bb3e [ADD] mail_tracking_mailgun 2018-05-08 16:39:07 +02:00
Antonio Espinosa bedcc1ba20 OCA Transbot updated translations from Transifex 2018-05-08 16:39:07 +02:00
David bae9999b19 [MIG] mail_tracking: Migration to 11.0 2018-05-07 10:22:39 +01:00
Emanuel Cino 150d0d060c [FIX] mail_tracking js could break other modules using chat_manager 2018-05-07 10:22:39 +01:00
eLBati 4173794526 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
2018-05-07 10:22:39 +01:00
OCA Transbot 2c0306293c OCA Transbot updated translations from Transifex 2018-05-07 10:22:39 +01:00
Antonio Espinosa 9c2236056d [FIX] mail_tracking: bugfixes (#199)
* [FIX] Only one data-odoo-tracking-email tag in each email
* [FIX] Get status even in multicompany instances
2018-05-07 10:22:39 +01:00
Carlos Dauden 59929c298e [9.0][IMP] mail_tracking: Improve view with error details 2018-05-07 10:22:39 +01:00
OCA Transbot b55c2ff9b0 OCA Transbot updated translations from Transifex 2018-05-07 10:22:39 +01:00
David Vidal 88573ca875 [IMP] Shut mock exceptions up 2018-05-07 10:22:39 +01:00
OCA Transbot 8815c68c5a OCA Transbot updated translations from Transifex 2018-05-07 10:22:39 +01:00
Pedro M. Baeza 015f796404 [FIX] mail_tracking: Obtain outgoing server with sudo
As regular users can't access this object.
2018-05-07 10:22:39 +01:00