Browse Source

[FIX] Get status even in multicompany instances

mail_tracking_fix
Antonio Espinosa 7 years ago
parent
commit
0e17f91b9e
  1. 2
      mail_tracking/models/mail_message.py

2
mail_tracking/models/mail_message.py

@ -38,7 +38,7 @@ class MailMessage(models.Model):
partner_trackings = [] partner_trackings = []
partners_already = self.env['res.partner'] partners_already = self.env['res.partner']
partners = self.env['res.partner'] partners = self.env['res.partner']
trackings = self.env['mail.tracking.email'].search([
trackings = self.env['mail.tracking.email'].sudo().search([
('mail_message_id', '=', message.id), ('mail_message_id', '=', message.id),
]) ])
# Search all trackings for this message # Search all trackings for this message

Loading…
Cancel
Save