From 0318c0ba49694ce22f2b44251e12de0f64750c09 Mon Sep 17 00:00:00 2001 From: Quentin Mondot Date: Tue, 5 May 2026 11:04:49 +0200 Subject: [PATCH] [IMP] account_statement_import_online_ponto_credit_cooperatif: do not duplicate refs --- .../models/online_bank_statement_provider_ponto.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/account_statement_import_online_ponto_credit_cooperatif/models/online_bank_statement_provider_ponto.py b/account_statement_import_online_ponto_credit_cooperatif/models/online_bank_statement_provider_ponto.py index b7e67c1..c0271b1 100644 --- a/account_statement_import_online_ponto_credit_cooperatif/models/online_bank_statement_provider_ponto.py +++ b/account_statement_import_online_ponto_credit_cooperatif/models/online_bank_statement_provider_ponto.py @@ -32,13 +32,13 @@ class OnlineBankStatementProvider(models.Model): ref_operation = self._extract_detail( details, "Référence de l'opération" ) - if ref_operation: + if ref_operation and ref_operation != vals_line["payment_ref"]: vals_line["payment_ref"] = ( f"{vals_line['payment_ref']} {ref_operation}" ) operation_reason = self._extract_detail(details, "Motif de l'opération") - if operation_reason: + if operation_reason and operation_reason != vals_line["ref"]: vals_line["ref"] = f"{vals_line['ref']} {operation_reason}" if "partner_name" not in vals_line: