Daily updates from Odoo
Thursday, May 1, 2025
1 change · master
Resolved issues and error corrections
Fixed an error that could stop users from previewing a confirmed subscription when the plan allows customers to close it through the portal. This helps sales and customer-facing teams review subscriptions reliably without running into an unexpected crash.
Original PR description
Version: - saas-18.3 Steps to reproduce: - Create a subscription with plan that allow to close subscription on portal. - Confirm subscription. - Click on preview Issue: - A traceback is raised when attempting to preview the subscription. Cause: - Previously, 'dataset.id' was being accessed on a NodeList returned by 'querySelectorAll', which caused a traceback since NodeLists don't have a direct 'dataset' property. Solution: - Updated the code to iterate over each message element and conditionally display them based on their dataset ID. This ensures the correct message visibility without errors. task-4728721