Saturday, February 10, 2024
2 changes · master
Resolved issues and error corrections
This update fixes and cleans up Odoo’s internal HOOT testing tools used by developers to validate web and messaging features. It improves test accuracy, reduces false failures, and makes future changes safer without directly changing end-user functionality.
Original PR description
Part 1: https://github.com/odoo/odoo/pull/152930 Part 2: https://github.com/odoo/odoo/pull/153018 Part 3: https://github.com/odoo/odoo/pull/153023 This pull requests: - fixes linting errors in HOOT / HOOT-DOM - fixes issues with mock requests with simple string bodies - makes event helpers rely on mocked user agent or touch properties - properly handles the cleaning of registries after each test - moves test constants to a separate global file (instead of the session) - changes the default accessible URL in tests - exports missing HOOT-DOM helpers - fixes an issue with "multi" tests - changes the test/suite tags syntax from template tag to a named function --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Subscription sales orders with recurring products are already meant to have a recurring plan, but this change adds an extra safeguard. It prevents invoicing from crashing if an order without a plan is encountered, improving reliability in edge cases.
Original PR description
We prevent creating subscription sale orders with recurring products and no recurring plans However it's better to be defensive to avoid crashes. This commit adds an additional condition before accessing order_id.plan_id Task: 3725476