Sunday, November 17, 2024
2 changes
Resolved issues and error corrections
This fix prevents an error when users select text in the HTML editor and then use the back button to return to the Dashboard. It improves navigation reliability and avoids an unexpected crash in normal task editing flows.
Original PR description
Steps to Reproduce: 1. Navigate to the To-do section and create a new task. 2. Enter text. 3. Select the text and press the back button to return to the Dashboard. 4. A traceback occurs. Description of the issue/feature this PR addresses: Pressing back button to return Dashboard kept the toolbar open due to an active selection. This caused the editor to search for the selection target using `getSelectionTarget`, where `range.getBoundingClientRect()` returned zero. Before inserting an invisible character, the editor disabled observer and dispatched an event, but the editor was destroyed, resulting in a traceback. Desired behavior after PR is merged: Returning to the Dashboard on pressing back no longer triggers a traceback. task-4240335
This fixes payroll expense tests so they no longer fail depending on which accounting-related apps are installed. The change makes test results more consistent and reduces false alarms during quality checks, without changing day-to-day product behavior.
Original PR description
This fixes issues that arose since https://github.com/odoo/enterprise/commit/54965c8d62301ba1fa8409709a1a1fd77150f722 It fixes the fact that some tests ordered records using states and those states would be different in invoicing enterprise or accounting. Thus it would not have the same order of records and fail the test.