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

Compute Method: _compute_overtime_deductible

View 19.0
Inputs Method Outputs
  • holiday_status_id
  • holiday_status_id.overtime_deductible
  • holiday_status_id.requires_allocation
- for leave in self:
-             leave.overtime_deductible = leave.holiday_status_id.overtime_deductible and not leave.holiday_status_id.requires_allocation
  • overtime_deductible

Back to entity