Friday, December 23, 2022
2 changes · master
Code cleanup and technical improvements
The Activity view has been rebuilt using Odoo’s current interface framework, making it easier to maintain and align with other views. Related project customizations and CRM progress bar components were adapted so the same behavior is preserved while improving reuse and code clarity.
Original PR description
[[REF] mail, *: convert Activity view to Owl](https://github.com/odoo/odoo/commit/56cb4952c0b0ae54b9902626c4e8eaeb84d4275a) This commit converts the Activity view to the current framework shared by…
[[REF] mail, *: convert Activity view to Owl](https://github.com/odoo/odoo/commit/56cb4952c0b0ae54b9902626c4e8eaeb84d4275a) This commit converts the Activity view to the current framework shared by other views. Instead of extending Kanban view/elements, the Activity view has been implemented by its own. The project customization of the view has also been converted, as legacy files have been removed. Some tests have been adapted since some classnames might differ from the old implementation, resulting to failing tests. But the overall testing cases have been conserved. [[REF] web, crm: adapt Kanban progressbar to be a component](https://github.com/odoo/odoo/commit/ca8164e13c16081c3aa75619741fa29cb60160ef) This commit moves some parts of the code used by the progress bar of kanban to its own component. It is now clearer to distinguished its code from the renderer code (see crm_kanban_renderer). Also, it allows to re-use this component in other views without making a direct use of 'kanban' elements. The KanbanAnimatedNumber component has simply be renamed to AnimatedNumber, as this naming suggested the element was only used as a Kanban element. This more generic name now indicates that the element can be imported and used in other places.
The bank statement and account setup import tools were updated to work with Odoo's newer import interface. This keeps existing import workflows compatible after the underlying import technology was modernized, with limited visible change for end users.
Original PR description
*: account_setup_import, account_bank_statement_import. This commit adapts the code of those modules since the legacy implementation of the import action has been removed. Since it has been converted to make the use of Owl components, structured in different files and folders, it was necessary to rewrite those extensions properly, whether by patching or extending the current files. Community PR: https://github.com/odoo/odoo/pull/106265 task-3092474