Sunday, February 25, 2024
2 changes · 17.0
Resolved issues and error corrections
Fixed the planning module's interactive tour to work properly even when demo data is not installed. Previously, the tour would get stuck at the Publish & Send step because no shifts were assigned to employees. The fix adds test data setup to ensure the tour can complete successfully in all scenarios.
Original PR description
Currently if demo data is not installed, the planning tour will be blocked at the Publish & Send part since there are no shift assigned to an employee. To allow the tour to run even without any demo data, we need to add an employee and make sure that the user assigns a shift to this employee This should be forward ported from 15.0 to master on every stable version Task-3617611 Forward-Port-Of: odoo/enterprise#57260 Forward-Port-Of: odoo/enterprise#53411
Miscellaneous changes
Steps to reproduce: - Install `website_appointment` module - Activate debug mode - Create a Resource R1 and R2: - Create an appointment X - Set Availability to: "Resources" - Set Resources to: "R1" and "R2" - Set Assignment Method to: "Select Time then auto-assign" - Remove all Schedule lines and add 2 new ones, both on Sunday: - SL1: from 10:00 to 11:00 with restrict to resources set to R1 - SL2: from 10:00 to 11:00 with restrict to resources set to R2 - P
Original PR description
Steps to reproduce:
- Install `website_appointment` module
- Activate debug mode
- Create a Resource R1 and R2:
- Create an appointment X
- Set Availability to: "Resources"
- Set Resources to: "R1" and "R2"
- Set Assignment Method to: "Select Time then auto-assign"
- Remove all Schedule lines and add 2 new ones, both on Sunday:
- SL1: from 10:00 to 11:00 with restrict to resources set to R1
- SL2: from 10:00 to 11:00 with restrict to resources set to R2
- Publish the appointment and open preview
- Click on second '10:00PM' button
Issue:
500: Internal Server Error.
Cause:
Trying to get `available_resource_ids` from a slot while checking
all possible slot, but the key is not set since resource not available
for that specific slot.
Solution:
Skip if resources are set in the request, but no resource available
for the current slot.
opw-3629285
Forward-Port-Of: odoo/enterprise#53265