Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: HR Org Chart

Entity: hr.employee.base

Compute Method: _compute_subordinates

Inputs Method Outputs
  • subordinate_ids
for employee in self:
            employee.subordinate_ids = employee._get_subordinates()
            employee.child_all_count = len(employee.subordinate_ids)

Back to entity