From 6095527b7ec1a77336825751b53858ae57cd74e9 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Mon, 8 Aug 2022 00:05:18 +0200 Subject: [PATCH] Add module account_statement_import_base The 2 modules account_statement_import_online and account_statement_import depend on account_statement_import_base (and not on each other) and share common code, in particular a hook to update the statement line. So we can now have reconciliation modules that use this hook and therefore work both on file import and online import. More details on https://github.com/OCA/bank-statement-import/issues/481. Improve bank statement line form view and journal form view. --- .../models/online_bank_statement_provider_ponto.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_statement_import_online_ponto/models/online_bank_statement_provider_ponto.py b/account_statement_import_online_ponto/models/online_bank_statement_provider_ponto.py index b962ae96..e67ce2c1 100644 --- a/account_statement_import_online_ponto/models/online_bank_statement_provider_ponto.py +++ b/account_statement_import_online_ponto/models/online_bank_statement_provider_ponto.py @@ -237,7 +237,7 @@ class OnlineBankStatementProviderPonto(models.Model): "payment_ref": attributes.get("remittanceInformation", ref), "unique_import_id": transaction["id"], "amount": attributes["amount"], - "online_raw_data": transaction, + "raw_data": transaction, } if attributes.get("counterpartReference"): vals_line["account_number"] = attributes["counterpartReference"]