From 7801db87139b6c0c00a4005bb431b28f6a2b925a Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Wed, 27 Mar 2013 17:58:33 +0100 Subject: [PATCH] [IMP] use existing subscription method bzr revid: mat@openerp.com-20130327165833-2qqwsxjhekywsosf --- addons/hr/hr.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/addons/hr/hr.py b/addons/hr/hr.py index 33548202545..bdbeaa196ec 100644 --- a/addons/hr/hr.py +++ b/addons/hr/hr.py @@ -230,8 +230,7 @@ class hr_employee(osv.osv): # the user linked to the employee follow the employee if 'user_id' in data: - user = self.pool.get('res.users').browse(cr, uid, data['user_id'], context=context) - self.message_subscribe(cr, uid, [employee_id], [user.partner_id.id], context=context) + self.message_subscribe_users(cr, uid, [employee_id], [data['user_id']], context=context) return employee_id def unlink(self, cr, uid, ids, context=None):