Monday, June 23, 2025
1 change · 18.0
Code cleanup and technical improvements
This update simplifies shared code used by Odoo's web error stack trace handling, making it easier to maintain without changing user-facing behavior. It also includes the contributor license confirmation for the author.
Original PR description
**Description of the issue/feature this PR addresses:** Extract shared logic into `compareByFields(...)` within `addons\web\static\lib\stacktracejs\stacktrace.js`. **Current behavior before PR:** `compareByOriginalPositions(...)`, `compareByGeneratedPositionsDeflated(...)`, and `compareByGeneratedPositionsInflated(...)` each contain shared code. **Desired behavior after PR is merged:** Introduce a helper `compareByFields(...)` that handles comparing by positions with optional parameters. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr