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.base

Compute Method: _compute_is_flexible

View 18.0
Inputs Method Outputs
  • resource_calendar_id
  • is_fully_flexible
  • resource_calendar_id.flexible_hours
+ for employee in self:
+             employee.is_fully_flexible = not employee.resource_calendar_id
+             employee.is_flexible = employee.is_fully_flexible or employee.resource_calendar_id.flexible_hours
  • is_fully_flexible
  • is_flexible

Back to entity