Merge PR #510 into 14.0

Signed-off-by alexey-pelykh
This commit is contained in:
OCA-git-bot
2022-10-17 11:23:52 +00:00

View File

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