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 chienandalu committed Apr 5, 2018
1 parent bc64bee commit c666f0b
Showing 1 changed file with 2 additions and 0 deletions.
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 @@ -225,6 +225,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 c666f0b

Please sign in to comment.