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

Compute Method: _compute_can_reset

View 17.0 View 18.0
Inputs Method Outputs
for holiday in self:
            try:
-                 holiday._check_approval_update('draft')
+                 holiday._check_approval_update('confirm')
            except (AccessError, UserError):
                holiday.can_reset = False
            else:
                holiday.can_reset = True
  • can_reset

Back to entity