From 0c3f88b7767c99343a2379329794d825c0df7cbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 25 Mar 2024 00:19:23 +0100 Subject: [PATCH] Wrap transaction description into a single line to store as origin description Since a2f811ed0e99 it is not allowed to store multiline in Char field. Closes #13123 --- modules/account_statement_mt940/account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/account_statement_mt940/account.py b/modules/account_statement_mt940/account.py index cb1e0a87b4..896351cd8d 100644 --- a/modules/account_statement_mt940/account.py +++ b/modules/account_statement_mt940/account.py @@ -88,7 +88,7 @@ class StatementImport(metaclass=PoolMeta): origin.date = transaction.date origin.amount = transaction.amount origin.party = self.mt940_party(mt940_statement, transaction) - origin.description = transaction.description + origin.description = ''.join(transaction.description.splitlines()) origin.information = self.mt940_information( mt940_statement, transaction) return [origin]