Cap the balance, not lifetime entitlement
Accrual pauses at the unused-balance cap and resumes when leave creates room. The check uses the leave type’s balance across allocations.
A healthcare employer’s Odoo 15 system brings employee service history, contracts, attendance, payroll and leave together. A bespoke accrual extension solves a subtle policy problem: capping unused leave without permanently stopping future entitlement.
A lifetime limit on an allocation is not the same as a limit on the employee’s unused leave. Under the required policy, accrual must pause when the available balance reaches the cap and resume after leave is used. Multiple allocations, approved leave and archived employees make that more complex than a single maximum-days field.
We implemented a dedicated balance-cap extension in the existing Odoo 15 HR and payroll environment. It checks the employee’s unused balance for the leave type across allocations and limits only the new accrual. We rehearsed the correction of affected allocations and simulated the following month on a copy before applying the targeted production correction.
Accrual pauses at the unused-balance cap and resumes when leave creates room. The check uses the leave type’s balance across allocations.
The extension handles partial accrual near the cap and converts hour-based limits to days. The correction skips archived employees and guards against records changed after review.
The same environment holds service dates derived from contract history, attendance and monthly payroll reporting, with operating-unit controls.
The delivered rule matches a rolling unused-balance policy: taking leave can restart accrual, while an employee already at the cap receives no excess credit. The production correction was narrowly applied and the next-month behaviour was checked on a copy.
This is an HR and payroll implementation case, not a patient-record or clinical-care system. The reported outcome is the delivered policy logic, not a claimed reduction in payroll cost.
Get a free 30-minute consultation — we'll map your workflow and show you exactly what to automate first.