From 04d362254cd5d832b53eb755be4466380ad445f7 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Mon, 18 Dec 2023 15:20:47 +0100 Subject: [PATCH] [16.0][FIX] models/online_bank_statement_provider_ponto.py: prevent attempt to modify of posted account.move --- .../models/online_bank_statement_provider_ponto.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 c3a21f27..da525d99 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 @@ -169,11 +169,9 @@ class OnlineBankStatementProvider(models.Model): # For each period, create or update statement lines for period, statement_lines in grouped_periods.items(): (date_since, date_until) = period - statement = self._create_or_update_statement( + self._create_or_update_statement( (statement_lines, {}), date_since, date_until ) - for line in statement.line_ids.filtered(lambda l: not l.partner_id): - line.partner_id = line._retrieve_partner() def _ponto_get_transaction_vals(self, transaction): """Translate information from Ponto to statement line vals."""