Tuesday, February 21, 2023
2 changes · master
Code cleanup and technical improvements
This change reorganizes how user interface widgets are registered across several Odoo apps. It separates the widget setup details from the visible component itself, making the codebase easier to maintain and evolve without changing business functionality.
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 how widgets are registered internally, separating widget details from the visual components that display them. It should make future maintenance and development more consistent across many Odoo apps, with little to no direct impact on day-to-day users.
Original PR description
Before this commit, the widget's description was stored on the component and this component was then registered. Now, an object describing the widget is used on registration the same way as it is done for views since b828cfc. This split the component's description (props, template, ...) of the widget's description ( component, extractProps, ...) and makes it clearer. Part of task: 3179751