From 81d0bfa4738c5563a26df5cd666ef895cd59d3d0 Mon Sep 17 00:00:00 2001 From: Cedric Snauwaert Date: Mon, 3 Jul 2017 13:19:45 +0200 Subject: [PATCH] [FIX] account: fix opening of reconciliation widget account_move_line field name is not required anymore, thus it is possible that some aml does not have a name. Which made the reconciliation widget crash in that case as it can not "concatenate string and bool" --- addons/account/models/account_move.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index 1ae2ba28d8e..23b177b194d 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -696,7 +696,7 @@ class AccountMoveLine(models.Model): company_currency = line.account_id.company_id.currency_id ret_line = { 'id': line.id, - 'name': line.name != '/' and line.move_id.name + ': ' + line.name or line.move_id.name, + 'name': line.name and line.name != '/' and line.move_id.name + ': ' + line.name or line.move_id.name, 'ref': line.move_id.ref or '', # For reconciliation between statement transactions and already registered payments (eg. checks) # NB : we don't use the 'reconciled' field because the line we're selecting is not the one that gets reconciled