Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2112 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ

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