Friday, May 24, 2024
7 changes · saas-17.2
Resolved issues and error corrections
This fixes an issue where turning developer mode on or off from Settings updated the web address but did not actually refresh Odoo into the requested mode. The webclient now reloads as needed, so administrators get the expected developer tools immediately.
Original PR description
- Settings; - Activate the developer mode (with assets); Before this commit, the query string `?debug=1` is correctly added to the url, but the developer mode is not active because the webclient didn't reload. This occurs because, since [1], internal links that point to a different place on the same Odoo instance will simply load the URL without causing a full page reload. Now, the webclient is correctly reloaded when activating or deactivating the developer mode. [1] https://github.com/odoo/odoo/commit/c63d14a0485a553b74a8457aee158384e9ae6d3f opw-3945721
This fix updates mail tests so they wait for Discuss to finish loading before checking sidebar behavior. It reduces false test failures and helps ensure the Discuss interface remains dependable after loading-state changes.
Original PR description
Follow-up of https://github.com/odoo/odoo/pull/166368 PR above fixes lack of UI feedback when discuss is loading, as this gave the wrong impression Discuss was loaded with no discuss data. Some tests need to be adapted in order to wait Discuss being fully loaded, e.g. Fold/unfold of discuss category requires full loading of Discuss. Unit test 'states: open should update the value on the server' was not adapted, and caused some failure because clicking on category when Discuss is not loaded does not allow to change fold state of category. https://runbot.odoo.com/runbot/build/62938671
Folding or unfolding sections in the Discuss sidebar no longer causes the list to shift slightly up or down. This makes navigation feel smoother and avoids small visual jumps for users with many chats or channels.
Original PR description
Before this commit, when toggling on/off the folding of some discuss categories in the sidebar of Discuss app, the content of the sidebar was slightly moving vertically. Steps to reproduce: - Log in…
Before this commit, when toggling on/off the folding of some discuss categories in the sidebar of Discuss app, the content of the sidebar was slightly moving vertically. Steps to reproduce: - Log in as Mitchell Admin - Open Discuss app in desktop - Create many channels and chats so that sidebar is scrollable - fold/unfold any category, e.g. "Direct messages" => the content in sidebar moves slightly up or down from the fold. This happens because the whole sidebar is flex, and the `<hr>` have dynamic height based on amount of items in the flex container. The dynamic height comes from them shrinking when the sidebar overflows, which makes them grow when folding a category and the sidebar is no longer overflowing. This commit fixes the issue by preventing all `<hr>` in discuss sidebar from shrinking, so that folding a category keeps listing of items exactly in place, so no micro-moving on vertical axis. Before / After  
Attachments shown in Discuss now have rounded corners so they better match the surrounding interface. This creates a more polished, consistent visual experience alongside avatars, message inputs, and buttons.
Original PR description
Without the rounded corners, it looked too harsh. This is especially bothering when many other elements use rounded borners, like author avatar, composer input and almost all buttons. Before / After <img width="370" alt="before" src="https://github.com/odoo/odoo/assets/6569390/08555067-6989-461e-95ab-7bafa01974c3"> <img width="382" alt="after" src="https://github.com/odoo/odoo/assets/6569390/561a4a4d-e767-4607-91a1-3516facf683d">
The spreadsheet editing module was adjusted to work with the latest spreadsheet engine update. This helps keep spreadsheet comments and pivot detail panels functioning reliably after the underlying library change.
Original PR description
Update spreadsheet_edition code following library update. counterpart of https://github.com/odoo/odoo/pull/166686
Accounting users can now reset posted invoices to draft without needing payroll officer permissions. This removes an unnecessary access error and lets accounting teams complete invoice corrections using their existing rights.
Original PR description
Access with User having Accounting permissions Open a posted invoice Click 'Reset to draft' Issue: Access Error will raise """ This operation is allowed for the following groups: - Payroll/Officer : Manage all contracts Contact your administrator to request access if necessary. """ Accounting user should be able to reset to draft without having payroll permissions opw-3932705
This update fixes several issues in Odoo's internal HOOT testing tools and mock browser/server behavior. It helps developers run more reliable automated tests, reducing the risk of test failures unrelated to real product problems.
Original PR description
## Pull Request HOOT (PRHOOT) - part 15.5 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 Part 4:…
## Pull Request HOOT (PRHOOT) - part 15.5 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 Part 4: https://github.com/odoo/odoo/pull/153203 Part 5: https://github.com/odoo/odoo/pull/153425 Part 6: https://github.com/odoo/odoo/pull/153700 Part 7: https://github.com/odoo/odoo/pull/154054 Part 8: https://github.com/odoo/odoo/pull/154579 Part 9: https://github.com/odoo/odoo/pull/155073 Part 10: https://github.com/odoo/odoo/pull/155639 Part 11: https://github.com/odoo/odoo/pull/156255 / https://github.com/odoo/enterprise/pull/58135 Part 12: https://github.com/odoo/odoo/pull/156869 Part 13: https://github.com/odoo/odoo/pull/158384 / https://github.com/odoo/enterprise/pull/59019 Part 14: https://github.com/odoo/odoo/pull/158916 Part 15: https://github.com/odoo/odoo/pull/160292 / https://github.com/odoo/enterprise/pull/59971 This pull requests brings various improvements and fixes to Hoot and the Odoo unit test ecosystem. See the different commit messages for more details. Note: these changes are made in stable to avoid having to support multiple versions of the HOOT API. As such, these changes are intended to be strictly limited to unit tests as to not put the rest of the code base at risk. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr