mirror of
https://github.com/OCA/bank-statement-import.git
synced 2025-01-20 12:37:43 +02:00
[14.0][FIX]camt import
This commit is contained in:
committed by
Alexis de Lattre
parent
1afd618c24
commit
21dee0d52e
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user