[FIX] mail: context propagation
Thanks michaelhwalther <michaelhwalther@gmail.com> for pointing it out.
This commit is contained in:
parent
903cde0522
commit
a35d2d5548
|
@ -186,7 +186,7 @@ class mail_notification(osv.Model):
|
||||||
message = self.pool['mail.message'].browse(cr, SUPERUSER_ID, message_id, context=context)
|
message = self.pool['mail.message'].browse(cr, SUPERUSER_ID, message_id, context=context)
|
||||||
|
|
||||||
# compute partners
|
# compute partners
|
||||||
email_pids = self.get_partners_to_email(cr, uid, ids, message, context=None)
|
email_pids = self.get_partners_to_email(cr, uid, ids, message, context=context)
|
||||||
if not email_pids:
|
if not email_pids:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue