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_overtime_status

View 18.0
Inputs Method Outputs
  • overtime_status
  • employee_id
  • employee_id.company_id
  • employee_id.company_id.attendance_overtime_validation
- for attendance in self:
-             if not attendance.overtime_status:
-                 attendance.overtime_status = "to_approve" if attendance.employee_id.company_id.attendance_overtime_validation == 'by_manager' else "approved"
  • overtime_status

Back to entity