From 60b4066b8aac143a0a1597a8bf20bfde5a3371d7 Mon Sep 17 00:00:00 2001 From: NuriaMForgeFlow Date: Wed, 11 Aug 2021 16:13:55 +0200 Subject: [PATCH] [FIX] account_bank_statement_import_txt_xlsx: import sheet notes --- .../models/account_statement_import_sheet_parser.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/account_statement_import_txt_xlsx/models/account_statement_import_sheet_parser.py b/account_statement_import_txt_xlsx/models/account_statement_import_sheet_parser.py index 61571545..31233a09 100644 --- a/account_statement_import_txt_xlsx/models/account_statement_import_sheet_parser.py +++ b/account_statement_import_txt_xlsx/models/account_statement_import_sheet_parser.py @@ -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