跳至内容
菜单
此问题已终结
2111 查看

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.

形象
丢弃

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