Monday, March 27, 2023
4 changes · master
Code cleanup and technical improvements
This update changes how Odoo refreshes cached information after server requests, making screens and services react more consistently when important data changes. It supports more reliable updates across areas such as actions, views, currencies, companies, and several business apps without changing day-to-day workflows.
Original PR description
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
This update reorganizes how the website editor handles empty spaces, line breaks, and hidden content. It makes the editor code easier to understand and maintain, reducing the risk of future editing issues without introducing a major visible change for users.
Original PR description
This refactors the management of whitespace and visibility for clarity since several concepts were mixed up together. task-3235884 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The Documents module was reorganized by splitting and renaming files around the business areas they support. This makes the module easier for Odoo teams to understand and maintain, preparing it for future improvements without changing user-facing behavior.
Original PR description
PURPOSE Lint and reorganize documents module. This prepares future changes and eases module and models understanding. SPECIFICATIONS Rename model files according to their model. When several models are present in a file split it to have one file / model. Rename test files, as they mainly target either a model, either conceptual stuff like controllers or security. Rename view files according to their model. When several models are present in a file split it to have one file / model. Rename data files according to their model. When several models are present in a file split it to have one file / model. Except workflows, rules and actions are defined in the same file as they make a coherent and complete workflow definition together. Task-3246867 (Documents: lint module and models)
This update removes an outdated internal cache call from the Documents app because the underlying platform now handles it automatically. Users should not notice any change, but it helps keep the app compatible and easier to maintain.
Original PR description
This commit removes the invalidateCache call in documents. This method has been removed in the community version, and has been replaced by other mechanisms. It is no longer necessary to do it manually.