Tuesday, October 5, 2021
4 changes · master
Resolved issues and error corrections
The backend HTML editor no longer warns users about unsaved changes when nothing was changed. This prevents confusing prompts when leaving or reloading backend pages, while keeping the warning where it is still needed on public website editing.
Original PR description
Task [2371592](https://www.odoo.com/web#id=2371592&action=333&active_id=133&model=project.task&view_type=form&cids=1&menu_id=4720)
This update fixes a test cleanup issue that caused some document-related tests to fail unpredictably. It ensures expected dropdown elements are properly recognized during cleanup, improving confidence in automated quality checks without changing user-facing behavior.
Original PR description
Since commit [1], several tests from the "documents" addon failed randomly, because there were leftovers in the DOM at the end of the tests. Those leftovers were the many2one dropdowns. Since v12, we whitelist jQuery autocomplete dropdowns in the leftover check. However, since [1], the many2one autocomplete has an additionnal className, and it thus didn't match the element in the whitelist anymore. Note that we duplicated the entry in the whitelist because we need both (there are several types of autocomplete dropdowns in the "documents" view). [1] 84715436d87bb05b421bc9ccaacda67d07571690 Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The Swedish Point of Sale localization was updated to stop using an outdated setting that no longer exists. This prevents errors and keeps the Swedish POS compliance features working correctly after recent platform changes.
Original PR description
Forward port of https://github.com/odoo/enterprise/pull/21406
This fixes a test timing issue in Documents so checks wait for the inspector to finish updating before validating results. The change helps prevent false test results and improves confidence that document selection behavior works as expected.
Original PR description
The modified test selects records and checks the update in the document inspector. It does it twice: once with a record linked to a document, and one with a record not linked to anything. In the first case, we wait for an extra tick s.t. the inspector is updated, before doing the assertions. In the second case, we don't wait, so the assertions are therefore always true (they are all "negative" assertions, i.e. "containsNone").