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

Module: Time Off

Entity: hr.leave.allocation

Compute Method: _compute_number_of_hours_display

View 19.0
Inputs Method Outputs
  • employee_id
  • number_of_days
  • date_from
- for allocation in self:
-             if not allocation.employee_id:
-                 continue
-             allocation.number_of_hours_display = (allocation.number_of_days * allocation.employee_id._get_hours_per_day(allocation.date_from))
  • number_of_hours_display

Back to entity