Monday, October 16, 2023
3 changes · master
Code cleanup and technical improvements
This update removes an outdated template setting from the Point of Sale self-ordering module. It is an internal cleanup that keeps the module aligned with the current app structure and should not change the user experience.
Original PR description
As all the templates are now imported in the owl app, there is not need anymore to specify the owl="1" attribute in the templates. Ref-https://github.com/odoo/odoo/pull/130467 Related Enterprise PR-https://github.com/odoo/enterprise/pull/48964 task-3508331 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update removes older internal asset-loading calls from the web editor and web areas, moving part of the mobile preview setup to a server-generated template. This helps simplify the underlying asset system, making future maintenance easier without introducing a direct user-facing feature change.
Original PR description
In this commit, we remove three usages of the getBundle function from @web/core/assets.js. The final goal is to remove it totally to simplify the understanding of assets's API. To replace the use of getBundle in mobile preview dialog, an xml template has been created on the server side and then called by http requests. During the request, we retrieve the list of assets (server side getbundle) to inject these into the xml template. taskId : 3266441 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update removes an old template marker that is no longer needed because templates are now handled automatically by the app framework. It should not change how users work with Odoo, but it helps keep the codebase cleaner and easier to maintain.
Original PR description
As all the templates are now imported in the owl app, there is not need anymore to specify the owl="1" attribute in the templates. Ref-https://github.com/odoo/odoo/pull/130467 task-3508331