[FIX] account_bank_statement_import_txt_xlsx: import sheet notes

This commit is contained in:
NuriaMForgeFlow
2021-08-11 16:13:55 +02:00
committed by Héctor Villarreal Ortega
parent f164a5bdff
commit f0beb6fc41

View File

@@ -359,9 +359,11 @@ class AccountStatementImportSheetParser(models.TransientModel):
if transaction_id:
note += _("Transaction ID: %s; ") % (transaction_id,)
if note and notes:
note = "{}\n{}".format(note, note.strip())
note = "{}\n{}".format(notes, note.strip())
elif note:
note = note.strip()
elif notes:
note = notes
if note:
transaction["narration"] = note