Monday, July 1, 2024
2 changes · saas-17.3
Resolved issues and error corrections
This fixes an issue in Point of Sale where an invalid timezone could be used during frontend operations. The change helps ensure dates and times are handled reliably for businesses using POS.
This fix updates a planning test so it only considers the intended employees when checking automatic shift assignment. It helps keep automated validation stable and ensures night-shift planning with breaks continues to work as expected.
Original PR description
Before this commit, the test `test_auto_plan_employee_with_break_company_no_breaks` fails because the auto plan feature will plan the open shifts to a resource generated by appointment feature since those resources are always available according to their calendar. This commit adds a role on the open shift and the employee created in that test to be sure we will just fetch the resources with the role of the open shift since the test just makes sure the resource doing night shifts with breaks is correctly assigned to that shift. runbot-64874