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

Module: Remote Work

Entity: hr.employee.base

Compute Method: _compute_name_work_location_display

Inputs Method Outputs
dayfield = self._get_current_day_location_field()
unspecified = _('Unspecified')
for employee in self:
            current_location_id = employee.exceptional_location_id or employee[dayfield]
            employee.name_work_location_display = current_location_id.name if current_location_id else unspecified

Back to entity