[IMP] mail: fixed a forgottent context.

bzr revid: tde@openerp.com-20121221161159-267ezrwo3bux3879
This commit is contained in:
Thibault Delavallée 2012-12-21 17:11:59 +01:00
parent be6dd64e1e
commit dcd9f1d35e
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ class res_users(osv.Model):
This is done because when giving the context of Chatter on the
various mailboxes, we do not have access to the current partner_id. """
partner_id = self._message_post_get_pid(cr, uid, thread_id, context=context)
return self.pool.get('res.partner').message_post_user_api(cr, uid, partner_id, **kwargs)
return self.pool.get('res.partner').message_post_user_api(cr, uid, partner_id, context=context, **kwargs)
def message_post(self, cr, uid, thread_id, context=None, **kwargs):
""" Redirect the posting of message on res.users to the related partner.