Friday, October 11, 2024
4 changes · 17.0
Resolved issues and error corrections
Odoo now ignores a specific type of vague browser error caused by Chrome extensions, such as Honey PayPal, when it is not useful for users. This prevents unnecessary error pop-ups from interrupting work while keeping normal debugging behavior available for developers.
Original PR description
Before this commit, when some extension in chrome threw an unhandledrejection event, Chrome apparently redacts it. The error popped into Odoo as very generic one. The error Dialog was spawned, intempestively. After this commit, we use a heuristic to block that kind of errors: Apparently, the error event is a CustomEvent, with no `reason`. opw-4246402 Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Opening an event ticket link that is missing required ticket details now fails gracefully instead of causing a system error. This prevents confusing error pages for users who access incomplete or modified ticket URLs.
Original PR description
Currently, an error occurs while opening an event ticket with an invalid URL. Step To Produce: - Install the 'event' module. - And Open any booked event, click on 'Attendees', and open any record, Click on 'View Ticket' in chatter. - Copy the ticket URL and try to open this ticket URL without 'registration_ids' which is included in it. ``` TypeError: EventController.event_my_tickets() missing 2 required positional arguments: 'registration_ids' and 'tickets_hash' ``` An error occurs when the system tries to call a route '/event/<int:event_id>/my_tickets'' without certain parameters at [1]. Link [1]: https://github.com/odoo/odoo/blob/5945b8340ba4797c8224ab3464ec87e8f285d75a/addons/event/controllers/main.py#L31 To handle this issue, provide a default value to the parameter of the route method. sentry-4952598215 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fixes an issue where creating a related record inside a form could leave leftover child-record changes on the main record after saving. Users should see cleaner, more reliable form saves without unintended pending changes.
Original PR description
When adding a m2m record in a form view, although record is correctly add and virtual record should no longer be part of `web_save`, trigger save on parent/main record still has changes left from children's records. This fixes issue #178541 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Survey answer images on the participant results page now display at an appropriate size instead of overlapping. This makes quiz and survey results easier to review and presents uploaded answer images more neatly.
Original PR description
Steps to reproduce: 1. Create a live session for a 'Quiz about your company' survey 2. Add images to your answers 2. Complete it with one user 3. Review your answer in the last 4. The images are getting overlap Technical Reason: on the user-side results page, images that were not properly handled were displayed at their default size. After this commit: it should be perfectly aligned. Task-4208130