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

Module: Attendances

Entity: hr.attendance

Compute Method: _compute_expected_hours

View 18.0
Inputs Method Outputs
  • worked_hours
  • overtime_hours
- for attendance in self:
-             attendance.expected_hours = attendance.worked_hours - attendance.overtime_hours
  • expected_hours

Back to entity