Skip to Content
Menu
This question has been flagged
1542 Views

Hello, i have some custome module for request employee, and in this form i need hierary chart employee. I try this 

python:

child_ids = fields.One2many('hr.employee', 'manager_user', string='Subordinates')

XML:


id="o_employee_right">

class="o_org_chart_title mb16 mt0">Organization Chart


name="child_ids" widget="hr_org_chart"/>

But error, can you guys help me.

Avatar
Discard

Hi,
you need to add dependency in __manifest__.py file >> "hr" if not added.