From abf409222080ce61d56f4622ed09b68ddf8fd20f Mon Sep 17 00:00:00 2001 From: Luc De Meyer Date: Sun, 17 Jan 2021 17:03:27 +0100 Subject: [PATCH] [14.0][FIX]camt import --- account_statement_import/wizard/account_statement_import.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/account_statement_import/wizard/account_statement_import.py b/account_statement_import/wizard/account_statement_import.py index 09e7ff7e..a815a09d 100644 --- a/account_statement_import/wizard/account_statement_import.py +++ b/account_statement_import/wizard/account_statement_import.py @@ -332,6 +332,9 @@ class AccountStatementImport(models.TransientModel): st_lines_to_create.append(lvals) if len(st_lines_to_create) > 0: + if not st_lines_to_create[0].get("sequence"): + for seq, vals in enumerate(st_lines_to_create, start=1): + vals["sequence"] = seq # Remove values that won't be used to create records st_vals.pop("transactions", None) # Create the statement with lines