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

Module: Employees Shifts

Entity: hr.employee.base

Compute Method: _compute_current_shift_id

View 18.0
Inputs Method Outputs
- """Current shift for a given employee if any"""
- now = fields.Datetime.now()
- for employee in self:
-             employee.current_shift_id = employee._shift_of_date(now, now)
  • current_shift_id

Back to entity