Tuesday, October 10, 2023
10 changes · master
Code cleanup and technical improvements
This update modernizes how drag-and-drop sorting works so it can be reused in more parts of Odoo, including website and editor screens. It reduces reliance on older components and should make sortable interactions easier to maintain and more consistent for users.
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 change reorganizes the drag-and-drop building blocks so they no longer depend on one specific front-end framework. It makes the same behavior easier to use in more areas of Odoo, including places where that framework is not available, with little expected visible change for users.
Original PR description
This commit removes Owl hooks from the draggable hook builder file and introduces a new parameter attribute (`setupHooks`) to specify which functions must be used to set up, update and tear down the draggable hook. This has been done to allow the draggable hook builder function to be used in environments where Owl is not available. Enterprise: https://github.com/odoo/enterprise/pull/47693 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update removes an outdated internal bridge that was only still routing a small set of legacy service calls. It simplifies the web foundation and related modules without introducing expected changes for end users.
Original PR description
This service was used to redirect legacy service requests to the wowl service infrastructure. It has been incrementally simplified with the codebase getting converted. It now only allows to redirect calls to the effect service, which doesn't seem useful anymore. This commit thus removes it. Part of task~3439226 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 change simplifies how Odoo loads assets used in website and mass mailing preview features. It supports ongoing cleanup of the asset system while preserving the mobile preview experience for users.
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
This change removes leftover styling for a date picker library that is no longer used. It keeps the codebase cleaner and reduces the chance of obsolete frontend customizations affecting future maintenance.
Original PR description
The tempusdominus library has been removed by [1]. This commit removes scss customizations of the library that have been forgotten. [1] 910897fc97d87b08f01627094ec8c159f5267628 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 change removes dark mode styling that was only needed for an old date picker library. Since that library is no longer used, removing the extra styling keeps the web interface code cleaner without changing business workflows.
Original PR description
The tempusdominus library has been removed by [1]. This commit removes the dark mode override for the tempusdominus picker. [1] odoo/odoo@910897fc97d87b08f01627094ec8c159f5267628
The Gantt view’s drag-and-drop helper has been reorganized so it no longer depends directly on a specific interface framework. This keeps the scheduling experience unchanged for users while making the feature easier to maintain and align with related platform updates.
Original PR description
This commit is the follow-up of its community counterpart with the same name. It adds the Owl setup hooks as default hooks of the Gantt draggable helper hooks. Community: https://github.com/odoo/odoo/pull/136116
An unused background service related to opening the home menu has been removed because the older code path that depended on it no longer exists. This simplifies the enterprise web client internals with no expected change for end users.
Original PR description
This service is no longer useful as there's no legacy code triggering events to open the home menu anymore. Part of task~3439226
This update reworks internal drag-and-drop behavior so it can be reused in more parts of the system, including areas that do not rely on the same interface framework. It helps keep web tools such as the home menu, Gantt views, and Studio editing more flexible and easier to maintain without changing core business workflows.
The VoIP module has been rebuilt on newer Odoo technology to reduce accumulated technical debt and make future enhancements easier. This mainly updates the internal structure and user interface foundations without introducing a specific new business feature.
Original PR description
The code of the VoIP module is getting quite old and has accumulated a lot of technical debt over the years, making it very difficult if not impossible to add new features and fix some bugs. An upgrade of the code to our current coding standards is required prior to any further improvements. This commit rewrites the code to use the newest APIs. In particular, it rewrites all the javascript code in a more declarative fashion, using Owl components and services instead of the old widgets. Task-2376357. Community: https://github.com/odoo/odoo/pull/115689 Upgrade: https://github.com/odoo/upgrade/pull/5021