have one list of notifications

[IMP] use a nice formatting to show notifications for imported file
This commit is contained in:
Holger Brunn
2015-11-23 12:10:21 +01:00
committed by Mourad Elhadj Mimoune
parent 0c4f1da5ab
commit 7b053ecb2c

View File

@@ -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,
}