Browse Source

[9.0][FIX][mail_tracking] Control exception when mail_message was removed (#132)

pull/147/head
Antonio Espinosa 8 years ago
committed by Pedro M. Baeza
parent
commit
3cc0c767aa
  1. 2
      mail_tracking/models/mail_tracking_email.py

2
mail_tracking/models/mail_tracking_email.py

@ -218,6 +218,8 @@ class MailTrackingEmail(models.Model):
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)

Loading…
Cancel
Save