From 7b053ecb2ccca79a7a3de1e1a9eb1409fd6414f1 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Mon, 23 Nov 2015 12:10:21 +0100 Subject: [PATCH] have one list of notifications [IMP] use a nice formatting to show notifications for imported file --- .../models/account_bank_statement_import.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/account_bank_statement_import_save_file/models/account_bank_statement_import.py b/account_bank_statement_import_save_file/models/account_bank_statement_import.py index 875e2c7..21f04a5 100644 --- a/account_bank_statement_import_save_file/models/account_bank_statement_import.py +++ b/account_bank_statement_import_save_file/models/account_bank_statement_import.py @@ -46,5 +46,7 @@ class AccountBankStatementImport(models.TransientModel): 'res_id': statement_id, 'type': 'binary', 'datas': base64.b64encode(data_file), - 'description': notifications, + 'description': '\n'.join( + '%(type)s: %(message)' % notification + for notification in notifications) or False, }