Wednesday, April 24, 2024
4 changes · master
Resolved issues and error corrections
This fix adjusts accounting report tests so they can correctly generate report templates that include images or other assets. It helps prevent test deadlocks and improves the reliability of automated checks without changing business functionality.
Original PR description
When a template is rendered wkhtmltopdf kicks-in in a subprocess and makes HTTP GET requests for all the assets / images found inside the document. For those HTTP requests to succeed (1) the web server must up and running, (2) the cursor must be the same for serving the HTTP request and for running the test. (1) is achieved by running the test post-install as the web server is started after at-install tests and before post-install ones. (2) is achieved by being in "test mode", a mode where all new registries (no what the current thread) will reuse a same cursor (typically the one used by the test). The registry is automatically in test-mode when using the HttpCase test class. When the TransactionCase class is in-used, entering/leaving the test mode must be done manually. --- Related to community PR: https://github.com/odoo/odoo/pull/161438 The introduction of a new lock on inside the threaded-server to solve a long-running odoo-sh bug made those tests deadlock.
This fixes broken color highlighting in the Manufacturing Master Production Schedule after a Bootstrap upgrade. Users should again see the intended subtle background colors that help distinguish planning lines and statuses.
Original PR description
With the upgrade to bootstrap 5.3 in odoo/odoo#158560, using `alert-` alone does not work anymore. It was already the wrong use of `alert-` since it is not supposed to be used to change background colors. This PR replaces `alert-*` with `bg-*-subtle` to repair the broken behavior.
The paper-related setting for self-order preparation displays was moved out of the general preparation display area and into the correct self-order module. This prevents the setting from appearing or being used where it does not apply, reducing configuration confusion and avoiding incorrect behavior.
Original PR description
pos*: pos_preparation_display, pos_self_order_preparation_display A previous commit (odoo/enterprise#59959) has introduced a field `has_paper` in the pos_config. This field is introduced in the module pos_self_order and should only be used in this context. The problem here is that it was used in the pos_preparation_display module which is not correct. This commit fixes this by moving the changes brought by the first commit in the correct module 'pos_self_order_preparation_display'.
This fix improves how Odoo handles inherited view conditions that combine rules with “and” or “or”. It helps prevent false errors or unintended changes when customizing views in affected business apps.
Original PR description
The inheritance for python expression can use 'and' and 'or' separator. The expression will automatically wrapped by parenthesis to avoid any alteration of the previous expression. task-3433721 liked merged pr: #104741 https://github.com/odoo/odoo/pull/161129