bank-statement-import
bank-statement-import copied to clipboard
[19.0][MIG] account_statement_import_online: Migration to 19.0
This PR ports the account_statement_import_online module to Odoo 19.0 and adapts it to framework and data model changes introduced in this version. It focuses on keeping the functional behavior unchanged while aligning with new conventions and APIs.
Changes
Menu & UI
- Move the
online_bank_statement_provider_menuunderaccount.account_account_menu, sinceaccount.account_banks_menuno longer exists in Odoo 19.
Security & Actions
- Update
groups_idtogroup_idsonaction_online_bank_statements_pull_wizard, reflecting the field rename in Odoo 19.
Tests
- Remove the
odoo_test_helperdependency in unit tests and use the newly introducedadd_to_registryhelper instead. - Manually create a
suspense_accountfor the bank journal in tests, as a default suspense account is no longer provided due to changes in the demo data loading order (required to createbank.statement.linerecords).
Code Quality & API Updates
- Replace imports of
_withself.env._in line with pylint recommendations. - Fix string interpolations that did not follow Odoo/Python best practices.
- Replace
self.env.context.get("tz")occurrences withself.env.tz. - Migrate
_sql_constraintsdefinitions tomodels.Constraintto follow the new ORM API in Odoo 19.
Ah sorry I just noticed that the commit 5ee5f16 slipped through which is from another pull request. Need to remove that one.