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

Module: HR Attendance Holidays

Entity: hr.leave.allocation

Compute Method: _compute_overtime_deductible

View 17.0 View 18.0
Inputs Method Outputs
  • hr_attendance_overtime
  • holiday_status_id
  • holiday_status_id.overtime_deductible
for allocation in self:
-             allocation.overtime_deductible = allocation.hr_attendance_overtime and allocation.holiday_status_id.overtime_deductible
+             allocation.overtime_deductible = allocation.holiday_status_id.overtime_deductible
  • overtime_deductible

Back to entity