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.employee.base

Compute Method: _compute_remaining_leaves

View 18.0
Inputs Method Outputs
  • id
- remaining = {}
- if self.ids:
-             remaining = self._get_remaining_leaves()
- for employee in self:
-             value = float_round(remaining.get(employee.id, 0.0), precision_digits=2)
-             employee.leaves_count = value
-             employee.remaining_leaves = value
  • leaves_count
  • remaining_leaves

Back to entity