Monday, April 3, 2023
8 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 accounting chart setup has been redesigned so accounting templates are managed more directly in the system instead of through older data files. This should speed up company setup, reduce maintenance effort, and make it easier to reuse accounting configurations for new or related companies.
Original PR description
Task link *(inherited from @william-andre)*: https://www.odoo.com/web#id=2687567&model=project.task Enterprise PR: https://github.com/odoo/enterprise/pull/24076 Rewriting of the whole chart_template mechanism to be written in Python classes instead of XML, - speed up install time - reduce technical debt - get rid of the `l10n_generic_coa` module (everything will be in `account`) - more flexibility for declaration - allow to duplicate accounting from existing company (pour les fiduciaires) Translation => directly in `CSV` with columns `id, name:en_US, name:fr_BE`[...]
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
This update rewrites how accounting chart setup data is managed, moving it into a more maintainable structure that should speed up installations and make future accounting configuration easier. It also removes reliance on the old generic chart module and updates related accounting, payroll, reporting, and localization areas to work with the new approach.
Original PR description
**==DRAFT==** Task link *(inherited from @william-andre)*: https://www.odoo.com/web#id=2687567&model=project.task Community PR: https://github.com/odoo/odoo/pull/84079 Rewriting of the whole chart_template mechanism to be written in Python classes instead of XML, - speed up install time - reduce technical debt - get rid of the `l10n_generic_coa` module (everything will be in `account`) - more flexibility for declaration - allow to duplicate accounting from existing company (pour les fiduciaires) Translation => directly in `CSV` with columns `id, name:en_US, name:fr_BE`[...]
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
Odoo Studio’s view editing experience has been modernized to improve maintainability and support future enhancements. The update also fixes crashes when editing certain actions and improves field visibility behavior in list views, with minor compatibility updates in related apps.
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.