v15.59.1
frappe/hrmsv15.59.1Apr 22, 2026by frappe-pr-bot
AI Summary
Refines leave approval logic by hiding self-approval buttons and fixing the leave scheduler to allocate partial leave when the cap is reached.
Key Highlights
- Hides 'Approve' and 'Reject' buttons on an employee's own leave request
- Fixes leave scheduler to allocate remaining days up to Max Leaves Allowed instead of skipping
Full Release Notes
## Bug Fixes * When the _Prevent Self Approval for Leaves_ option in **HR Settings** is enabled, the PWA hides the "Approve" and "Reject" buttons on an employee’s own leave request. (https://github.com/frappe/hrms/pull/4406) * The leave scheduler now adds any earned leave that still fits within the maximum allowance instead of skipping the allocation when the cap is reached. This lets employees receive the portion of their monthly leave they are still entitled to. (https://github.com/frappe/hrms/pull/4401) **Authors**: @iamkhanraheel **Reviewers**: @deepeshgarg007, @ruchamahabal <details> <summary>AI content</summary> For these release notes, we used an LLM (OpenAI o3) to review and summarise the code changes, along with the associated issue and PR descriptions. It may contain typical errors and inaccuracies. You can read the prompt [here](https://github.com/barredterra/pretty_release_notes). Changes with the following labels were excluded: - skip-release-notes Changes with the following types were excluded: - ci - style - docs - refactor - chore - build - test </details>