[FIX] hr: fix hr.department name_get
hr.department name_get would crash when called with a single id. Closes #8459
This commit is contained in:
parent
1423cef6fc
commit
a0a4ec6374
|
@ -412,6 +412,8 @@ class hr_department(osv.osv):
|
|||
context = {}
|
||||
if not ids:
|
||||
return []
|
||||
if isinstance(ids, (int, long)):
|
||||
ids = [ids]
|
||||
reads = self.read(cr, uid, ids, ['name','parent_id'], context=context)
|
||||
res = []
|
||||
for record in reads:
|
||||
|
|
Loading…
Reference in New Issue