[FIX] hr: fix traceback when updating manager of department (ids is already a list, not necessary to list it)
This commit is contained in:
committed by
Thibault Delavallée
parent
10c342aff1
commit
af311c5a27
+1
-1
@@ -449,7 +449,7 @@ class hr_department(osv.osv):
|
||||
if manager_id:
|
||||
employee = self.pool.get('hr.employee').browse(cr, uid, manager_id, context=context)
|
||||
if employee.user_id:
|
||||
self.message_subscribe_users(cr, uid, [ids], user_ids=[employee.user_id.id], context=context)
|
||||
self.message_subscribe_users(cr, uid, ids, user_ids=[employee.user_id.id], context=context)
|
||||
return super(hr_department, self).write(cr, uid, ids, vals, context=context)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user