summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorMartin Trigaux <mat@openerp.com>2013-03-27 17:58:33 +0100
committerMartin Trigaux <mat@openerp.com>2013-03-27 17:58:33 +0100
commit7801db87139b6c0c00a4005bb431b28f6a2b925a (patch)
tree26a04ee5343fe7476d490f19b887c553df216e56 /addons
parentccf6cf921ec86013ef81d6242d93fe2a5dfd8662 (diff)
[IMP] use existing subscription method
bzr revid: mat@openerp.com-20130327165833-2qqwsxjhekywsosf
Diffstat (limited to 'addons')
-rw-r--r--addons/hr/hr.py3
1 files changed, 1 insertions, 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):