Friday, May 1, 2026
1 change · 18.0
Resolved issues and error corrections
This update allows planning managers to copy planning slots to employees with flexible calendars without encountering access errors. Previously, the system required access to employee records, limiting manager functionality. Now, managers can seamlessly copy slots, streamlining scheduling processes.
Original PR description
**Purpose**: A user with planning manager rights but no access to employee and contract records should be able to copy and movea planning slot to an employee with a flexible resource_calendar without getting an access rights error. **Before this commit:** When copying a planning slot, the system tries to compute the working hours over the period of the slot. This will raise an access rights error if the user doesn't have access to employee and contract records when the slot is moved to a flexible resource_calendar. **After this commit:** The user can copy a planning slot without access rights error with only planning manager rights, even if the slot is moved to a flexible resource_calendar. **Steps to reproduce:** 1. Install Planning and Planning Contract modules. 2. Create a user with only planning manager rights and no access to employee and contract records. 3. Copy a planning slot to an employee with a flexible resource_calendar. opw-6166557