Wednesday, November 22, 2023
1 change · 17.0
Resolved issues and error corrections
This fix resolves a critical bug in the Appointment module where switching an appointment type from resource-based to user-based availability while having manual confirmation enabled caused the system to crash with a division by zero error. The fix ensures appointments are properly confirmed without unnecessary confirmation requests in email notifications.
Original PR description
[FIX] Appointment based on user don't use manual confirmation
What are the steps to reproduce your issue?
- Create/Open an appointment type
- Availability on: Resources
- Options / Manual Confirmation: Yes
- Update the appointment type
- Availability on: Users
- Set some Users
- Publish
- Open the page of the appointment
- Schedule appointment and confirm
What is the current behavior that you observe?
- Traceback, division by zero
- Confirmation line in mail template
What would be your expected behavior in this case?
- Appointment planned and confirmed on UI
- No confirmation line ine the mail
Caused by task-2453291
opw-3603634
Forward-Port-Of: odoo/enterprise#51133