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_leaves

Inputs Method Outputs
date_from = fields.Date.context_today(self)
employee_days_per_allocation = self.employee_id._get_consumed_leaves(self.work_entry_type_id, date_from)[0]
self._set_leaves_from_consumption_data(employee_days_per_allocation)

Back to entity