Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

12.0 mig mail_tracking_mailgun #320

Merged
merged 35 commits into from
Mar 7, 2019

Conversation

ernestotejeda
Copy link
Member

Depends on #318
Cc @Tecnativa

@hbrunn hbrunn added this to the 12.0 milestone Nov 29, 2018
@hbrunn
Copy link
Member

hbrunn commented Nov 29, 2018

something with your dependencies seems wrong

@hbrunn
Copy link
Member

hbrunn commented Nov 29, 2018

sorry, didn't read the first message...

@pedrobaeza
Copy link
Member

Please rebase

antespi and others added 20 commits January 9, 2019 09:46
…ent events (OCA#82)

[IMP] mail_tracking: Speed installation time, discard concurrent events and other fixes
Both Carlos and me have work a lot in this module, maybe not coding but much testing and definition in usability
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.
chienandalu and others added 14 commits January 9, 2019 09:46
- Configurable partner email auto check.
- 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.
- Some res.partner form fields were not properly render due to this
module inherited view.
Currently translated at 16.7% (4 of 24 strings)

Translation: social-11.0/social-11.0-mail_tracking_mailgun
Translate-URL: https://translation.odoo-community.org/projects/social-11-0/social-11-0-mail_tracking_mailgun/fr/
- In case the sending domain is different from the one configured in the
mail.domain.catchall setting.
Besides Mailgun API url changes if the domain zone is in UE, it
remains the same for Validation API.
- In v11 only admins can read from ir.config_parameter so a sudo() must
be made to be able to get a parameter.
@ernestotejeda
Copy link
Member Author

rebased

Copy link
Contributor

@LoisRForgeFlow LoisRForgeFlow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@yajo yajo merged commit 8783e4f into OCA:12.0 Mar 7, 2019
@yajo yajo deleted the 12.0-mig-mail_tracking_mailgun branch March 7, 2019 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.