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.accrual.level

Compute Method: _compute_maximum_leave

View 17.0 View 19.0
Inputs Method Outputs
  • cap_accrued_time
for level in self:
-             level.maximum_leave = 100 if level.cap_accrued_time else 0
+             if not level.cap_accrued_time:
+                 level.maximum_leave = 0
  • maximum_leave

Back to entity