Monday, April 3, 2023
5 changes · master
Code cleanup and technical improvements
This update modernizes how many Odoo apps load their internal browser code, replacing an older custom approach with a standard one. It should make the platform easier to maintain and help future improvements ship with less risk, without changing day-to-day user workflows.
Original PR description
This commit converts almost all odoo module by native module. The goal is to deprecate odoo.define in favor of native module and then simplify boot.js by removing the regexp that finds module dependencies. task id: 3162300
The web module loading system no longer relies on an older internal error-handling mechanism. This keeps the platform easier to maintain and aligns it with current development practices, with no expected direct impact for users.
Original PR description
guardedCatch is a legacy feature meant to differenciate promises rejected as control flow from promises rejected because of an error. In recent years we have settled on the stance that using promise rejections, which are treated as errors by the language in many ways, is a bad idea. This commit removes the dependency of the odoo module system on this legacy feature.
This update converts many Odoo Enterprise app scripts to a newer standard code format. It supports long-term maintainability and should help simplify the platform startup process without changing day-to-day user workflows.
Original PR description
This commit converts almost all odoo module by native module. The goal is to deprecate odoo.define in favor of native module and then simplify boot.js by removing the regexp that finds module dependencies. task id: 3162300
The Knowledge app has been streamlined by removing unnecessary internal dialog wrappers. This reduces code complexity and helps make future maintenance safer and more efficient, with no expected change to the user experience.
Original PR description
This PR will remove some component wrappers that we only created to open a dialog from a legacy component. One can actually open a dialog component by using the action service of the `Component` object. We will therefore remove those wrapper components to reduce the code base. task-3203287
This update replaces a legacy JavaScript helper library with built-in browser capabilities across several Enterprise apps. It should reduce technical debt and make future maintenance easier, with little expected change for end users.