Friday, December 23, 2022
3 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 data import screen has been rebuilt with Odoo’s newer interface technology, replacing older legacy code and libraries. This should make imports easier to maintain, improve consistency with the rest of Odoo, and support better loading feedback for users.
Original PR description
This PR adds a Select component that has been used here to replace the jquery select2. Other components and hooks have been used or modified to bring this action to a better state, such as the UI…
This PR adds a Select component that has been used here to replace the jquery select2. Other components and hooks have been used or modified to bring this action to a better state, such as the UI service and BlockUI component, to support custom messages and the use of components. It was required to reimplement the loading progress and indicator used by the view. The main goal of this PR is to reimplements the import action view to use Owl instead of legacy code + library. Different components have been created to separate the UI in smaller blocks, and a model file contains the main aspects of the import logic. The set_file route in the base_import controller has been adapted to remove the usage of jsonp type of code for this situation since it is no longer needed nowadays. On top of the rewrite, js tests have been added to make sure the feature behaves correctly, and to assert the intended specs. Finally, legacy files + library have been removed, since they are no longer required. This work has been done by @BastienFafchamps and myself task-3092474
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