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
| 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) |
|
