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_work_location_name

View 19.0
Inputs Method Outputs
  • version_id
  • version_id.work_location_id
  • version_id.work_location_id.name
+ for employee in self:
+             employee.work_location_name = employee.version_id.work_location_id.name or None
  • work_location_name

Back to entity