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

Module: Employees

Entity: hr.employee

Compute Method: _compute_is_subordinate

View 20.0
Inputs Method Outputs
+ subordinates = self.env.user.employee_id.subordinate_ids
+ if not subordinates:
+             self.is_subordinate = False
+         else:
+             for employee in self:
+                 employee.is_subordinate = employee in subordinates
  • is_subordinate

Back to entity