Daily updates from Odoo
Sunday, November 17, 2024
4 changes · 18.0
Resolved issues and error corrections
Quotation documents linked to a specific company will now only be available within that company, while documents intended for all companies remain shared. This prevents users from seeing or using company-specific quotation content in the wrong company context, improving consistency for multi-company sales operations.
Original PR description
A quotation document can be linked either to a single company, or to all companies. However, this information was ignored, and all quotation documents were available in all companies, regardless of their linked companies. This change enforces consistent multi-company behavior, i.e. quotation documents are only available in their linked companies. opw-4087354
This update corrects how expense payment journal entries and the related outstanding company expense account are handled, so the interface and validation messages better match what users can actually configure. It also makes expense tests more reliable by avoiding dependence on record creation order.
Original PR description
## [FIX] hr_expense: Fix payment journal entry optional This fixes issues that arose since https://github.com/odoo/odoo/commit/2609fc2e38b8a82c773f27f910f2030b5d704633 In https://github.com/odoo/odoo/commit/2609fc2e38b8a82c773f27f910f2030b5d704633, the tests were edited but failed to reflect the changes that the user would be able to do from the interface. This also improves the error & field name for the new outstanding expense account, which was mistakenly mentioning employee expense instead of company ones ## [FIX] hr_expense: Fix tests account.move order determinism Fix a test where the sorting would be done depending on the account.moves creation order, because the moves would share all but the last element of their _order 'date desc, name desc, invoice_date desc, id desc' which would break for no valid reason if this order is changed. By changing the date, this make sure the test can always reliably access the moves in the same order. task-id: 4214018
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.