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 20.0
Inputs Method Outputs
  • exceptional_location_id
+ dayfield = self.env['hr.employee']._get_current_day_location_field()
+ for employee in self:
+             current_location = employee.exceptional_location_id or employee[dayfield]
+             employee.work_location_name = current_location.name
  • work_location_name

Back to entity