Skip to content

Commit

Permalink
[9.0][FIX][mail_tracking] Control exception when mail_message was rem…
Browse files Browse the repository at this point in the history
…oved (OCA#132)
  • Loading branch information
antespi authored and cubells committed Nov 25, 2016
1 parent 7f80473 commit e054b6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mail_tracking/__openerp__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{
"name": "Email tracking",
"summary": "Email tracking system for all mails sent",
"version": "9.0.3.0.0",
"version": "9.0.3.0.1",
"category": "Social Network",
"website": "http://www.tecnativa.com",
"author": "Tecnativa, "
Expand Down
2 changes: 2 additions & 0 deletions mail_tracking/models/mail_tracking_email.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,8 @@ def tracking_img_add(self, email):
return email

def _message_partners_check(self, message, message_id):
if not self.mail_message_id.exists(): # pragma: no cover
return True
mail_message = self.mail_message_id
partners = (
mail_message.needaction_partner_ids | mail_message.partner_ids)
Expand Down

0 comments on commit e054b6f

Please sign in to comment.