Friday, April 18, 2025
5 changes · saas-18.2
Resolved issues and error corrections
This fix makes Odoo's automated browser tests clean up correctly even when closing the browser takes longer than expected. It reduces false warnings and test instability, helping developers get more dependable test results without changing business features.
Original PR description
`browser.close()` can fail due to timeouts (in circumstances we don't quite understand yet). In that case, the `finally` block will abort abruptly, which leads the patches to not be stopped. Convert the entire thing to an `ExitStack`, to ensure every cleanup is correctly called, and put the registration of the cleanups closer to where they need arise (the exact location for patches as they're context managers which have first-class `ExitStack` support).
This fixes an issue in eLearning where archiving a course could fail and show an error instead of completing normally. The change improves reliability for staff managing course content by ensuring the archive action handles page elements correctly.
Original PR description
This task fixes a TypeError that occurred when attempting to archive a course in eLearning.The traceback was caused by using querySelector, which does not return a list and therefore has no .length property. The fix replaces .querySelector().length logic with proper element checks Updated the condition to check for element existence rather than using .length. Additionally, fixed incorrect syntax when adding a class to classList which was causing a traceback too. Task-4712560
This change fixes an error that prevented users from printing picking distribution documents from stock picking records in the Indian localization. Correcting the naming issue restores the expected print workflow and avoids interruptions during warehouse operations.
Original PR description
### Before this commit: A traceback occurred when trying to print the picking distribution from a `stock.picking` record. This was due to a typo in a variable name introduced in a update to the `stock.picking` module. Issue caused by: https://github.com/odoo/odoo/commit/381615636185b88585e5ca112e43b6a7d81e1895 ### After this commit: The typo has been corrected by replacing the incorrect variable name with the correct one, resolving the traceback issue during the picking distribution print. > Task-4737536 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Fixed an issue where copied course access links could be incomplete when a course was shared with anyone who has the link. Users can now copy and share the link with confidence that recipients will be redirected to the intended course page.
Original PR description
Steps to reproduce: 1. Create a new course. 2. Go to 'Options' tab. 3. Select show course to 'Anyone with the link' . 4. The link is not generated correctly, copy the link. Technical Reason: Previously, the 'website_url' field returned only a relative path (e.g., /slides/...), which broke redirection. After this commit: redirect to the intended URL. Task-4703290
This fixes a typo that prevented the course access request widget from working on the website. Visitors can once again request enrollment access by email, reducing friction for course sign-ups.
Original PR description
A small typo had been made when rewriting the enroll_email public widget that made it unusable. This commit fix the typo. Task-4721311 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr