[FIX] account: Journal Items link

- Activate debug mode
- Go to the Accounting Dashboard
- In Vendor Bills, click on 'Journal Items'

A crash occurs because of the concatenation of a `bool` and `str`.

In this case, the `action['help']` is `False`.

closes odoo/odoo#30351
This commit is contained in:
Nicolas Martinelli
2019-01-18 12:02:28 +00:00
parent 897834f406
commit 5291b8c1a4
@@ -360,7 +360,7 @@ class account_journal(models.Model):
action['view_id'] = False
if self.type == 'purchase':
new_help = self.env['account.invoice'].with_context(ctx).complete_empty_list_help()
action.update({'help': action.get('help', '') + new_help})
action.update({'help': (action.get('help') or '') + new_help})
return action
@api.multi