Friday, October 7, 2022
2 changes · master
Resolved issues and error corrections
This fixes time off requests so employees can only select allocated leave types when they have a valid allocation for the requested period. It also improves validation messages by showing available allocation dates and balances, helping employees and HR understand why a request cannot be approved.
Original PR description
…ssages - Do not allow selecting an allocated time off if the employee has no allocation in the selected period - Display the available allocatiosn and dates in the validation error text if a time…
…ssages
- Do not allow selecting an allocated time off if the employee has no allocation in the selected period
- Display the available allocatiosn and dates in the validation error text if a time off is selected outside the allocation windows
If there is an allocation from Aug 1st to Aug 31st:
- If a time off is taken between the 1st and 31st of August: ok
- If a time off longer than the allocated days is taken between the 1st and 31st of August: Validation error message, missing allocated days
- If a time off is taken before or after the 31st of August: impossible, the time off should not appear in the list
- If there is a time off between 25/07 and 03/08: the allocated time off is displayed because of the month of August but it can't be validated
- Review the number of allocated days: it displays "0 days remaining out of 0 days" when there is an allocation
task-2667441
--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-prApproval requests now place the employee's manager first when that approver is part of a defined approval sequence. This helps requests reach the right decision-maker sooner and ensures the configured approval order is saved correctly.
Original PR description
When a sequence is defined on an approval category and the employee's manager is selected as approver, they were the last in line to approve. With this commit, they are first in line. task-2884137