Daily updates from Odoo
Wednesday, November 27, 2024
1 change · master
Resolved issues and error corrections
Fixes the bulk approval action for time off allocations that require two approvers, so requests in the first approval stage now move forward as expected. This helps managers process employee leave allocations reliably without manual workarounds or stalled requests.
Original PR description
Steps to reproduce the bug: 1. Create a new time off type and set `approval` to By employee's approver and time off officer. 2. Create a new allocation: * Use the time off type created above. * Set the number of days to 20. 3. Save the created allocation. 4. Go to `Management -> Allocations`. 5. Select the created allocation and press on the actions cog. 6. Press on `Approve Allocations`. 7. The allocation state doesn't change to `second approval`. The action `Approve Allocations` doesn't take into account the allocations that are in the first stage of approval. To fix the issue, `Approve Allocations` action is updated to take these allocations into account. Also, `action_validate` and `action_approve` are both now being combined into `action_approve`. task-4207884