From 5291b8c1a41b5a75a76dea6cb45d7d1aeb6fbf55 Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Fri, 18 Jan 2019 12:02:28 +0000 Subject: [PATCH] [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 --- addons/account/models/account_journal_dashboard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/models/account_journal_dashboard.py b/addons/account/models/account_journal_dashboard.py index f4753ef4796..106eebb37fa 100644 --- a/addons/account/models/account_journal_dashboard.py +++ b/addons/account/models/account_journal_dashboard.py @@ -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