[FIX] hr: Traceback when assigning a parent department to a department

Comming from the hr module migration.
https://github.com/odoo/odoo/commit/44c62e1b7f02bb43ed75615076bcbbc7195f72d4#diff-7fe5c1ac38eeb355c75fa18a98b62323R271
This commit is contained in:
dut-odoo
2016-06-01 10:04:23 +02:00
committed by Yannick Tivisse
parent 593ae31f0e
commit e57f2f708d
+1 -1
View File
@@ -269,7 +269,7 @@ class Department(models.Model):
for record in self:
name = record.name
if record.parent_id:
name = "%s / %s" % (record.parent_id.name_get()[1], name)
name = "%s / %s" % (record.parent_id.name_get()[0][1], name)
result.append((record.id, name))
return result