From f0beb6fc4176c6cb6502fa1281101d4f591844b5 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 460bfe56..4255e000 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