Friday, December 27, 2024
4 changes · master
Enhancements to existing features
Website-related automated checks now run with a lower-privilege test user when administrator access is not needed. This improves confidence that common website, shop, stock, and wishlist workflows work correctly for non-admin internal users while reducing unnecessary elevated access in tests.
Original PR description
*: test_website, website_sale, website_sale_stock_wishlist, website_sale_stock Specification: - Use a less privileged user for tours that do not require admin privileges. Before this commit: - Tours used admin privileges in most of the tours, even if features do not require admin privileges. After this commit: - Created new internal user called "Rafe Restricted" with credentials "username":"website_user", "password":"website_user" - Created new class "HttpCaseWithWebsiteUser", this class can be used anywhere we want to use restricted user login for tour. - For existing tours, where admin privileges were not required login is replaced with website_user. task-3386375 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Website headers now use the menu’s own layout setting to decide when to switch to the mobile version, instead of relying on a fixed default. This makes customized website headers behave more consistently across screen sizes while keeping a safe fallback.
Original PR description
The code from [1] fixed the inconsistencies caused by using the `SM` size as header breakpoint (by setting it to a fixed value = `LG`). The goal of this commit is to simply improve this fix by extracting the breakpoint size from the `navbar-expand-xx` class of the navbar (using `LG` as a fallback), allowing to also handle header customizations. [1]: https://github.com/odoo/odoo/commit/9d0f6c6aa9a21d1690e687ac2b4b2028e9378370 linked to task-3086316
Social media icons on website pages now display more neatly when using small sizes. This improves visual consistency by making disk and square icons smaller and removing extra side spacing for the simplest layout.
Original PR description
This commit enhances the social media icons by reducing their width and height when the layout is set to disk or square with a small size. Additionally, it removes the left and right margins of the icons when the layout is set to none and the size is small. task-4107178
Point of Sale no longer needs extra country-specific customizations for blocking mixed refund and sales orders, because this behavior is now handled by default. This reduces duplicated logic and helps keep Chilean electronic invoicing and Belgian blackbox POS flows aligned with the standard process.
Original PR description
Community PR Odoo/Odoo#189329 changes the return value of the `PosOrder` method `doNotAllowRefundAndSales` to `true`, so that some patches are no longer relevant. Community PR: 189329 task-4369388