[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user