diff options
| author | Cedric Snauwaert <csn@openerp.com> | 2017-07-03 13:19:45 +0200 |
|---|---|---|
| committer | Cedric Snauwaert <csn@openerp.com> | 2017-07-03 13:19:49 +0200 |
| commit | 81d0bfa4738c5563a26df5cd666ef895cd59d3d0 (patch) | |
| tree | 80f31dd08842a9d717dba49cc715edfba3ead4ef | |
| parent | 16d38224d90a0cb46cb8cf8c34fe33461888442b (diff) | |
[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"
| -rw-r--r-- | addons/account/models/account_move.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
