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

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 leave.holiday_status_id.requires_allocation == 'no'

Back to entity