[9.0][FIX][mail_tracking] Control exception when mail_message was removed (#132)
This commit is contained in:
parent
3b5ee4cd61
commit
3cfe3a2234
@ -225,6 +225,8 @@ class MailTrackingEmail(models.Model):
|
|||||||
return email
|
return email
|
||||||
|
|
||||||
def _message_partners_check(self, message, message_id):
|
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
|
mail_message = self.mail_message_id
|
||||||
partners = (
|
partners = (
|
||||||
mail_message.needaction_partner_ids | mail_message.partner_ids)
|
mail_message.needaction_partner_ids | mail_message.partner_ids)
|
||||||
|
Loading…
Reference in New Issue
Block a user