From f9b8327134031880ce98afd220098662deccd468 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_bank_statement_import_sheet_parser.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/account_bank_statement_import_txt_xlsx/models/account_bank_statement_import_sheet_parser.py b/account_bank_statement_import_txt_xlsx/models/account_bank_statement_import_sheet_parser.py index 1011d18..d6a41d1 100644 --- a/account_bank_statement_import_txt_xlsx/models/account_bank_statement_import_sheet_parser.py +++ b/account_bank_statement_import_txt_xlsx/models/account_bank_statement_import_sheet_parser.py @@ -311,12 +311,11 @@ class AccountBankStatementImportSheetParser(models.TransientModel): transaction_id, ) if note and notes: - note = '%s\n%s' % ( - note, - note.strip(), - ) + note = "{}\n{}".format(notes, note.strip()) elif note: note = note.strip() + elif notes: + note = notes if note: transaction['note'] = note