From: Thibault Delavallée Date: Wed, 13 Aug 2014 12:47:35 +0000 (+0200) Subject: [FIX] mail: posting on the user should be redirect to its partner, not nowhere. X-Git-Tag: 8.0.0~362 X-Git-Url: http://git.inspyration.org/?a=commitdiff_plain;h=be3b7ba30184fca83772a92692ac6974deab4900;p=odoo%2Fodoo.git [FIX] mail: posting on the user should be redirect to its partner, not nowhere. --- diff --git a/addons/mail/res_users.py b/addons/mail/res_users.py index eedc046..22cff15 100644 --- a/addons/mail/res_users.py +++ b/addons/mail/res_users.py @@ -136,7 +136,7 @@ class res_users(osv.Model): if user_pid not in current_pids: partner_ids.append(user_pid) kwargs['partner_ids'] = partner_ids - return self.pool.get('mail.thread').message_post(cr, uid, False, **kwargs) + return self.pool['res.partner'].message_post(cr, uid, user_pid, **kwargs) def message_update(self, cr, uid, ids, msg_dict, update_vals=None, context=None): return True