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
Maksym Yankin
parent
b267105db1
commit
abf4092220
@@ -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