diff options
| author | Lucas Perais (lpe) <lpe@odoo.com> | 2017-04-03 13:59:22 +0200 |
|---|---|---|
| committer | Lucas Perais (lpe) <lpe@odoo.com> | 2017-04-04 09:48:54 +0200 |
| commit | fc0d2e2c83b65299f9d7bf874b0169f9afb2fa50 (patch) | |
| tree | 824137d80676efb720999db75db2ba688406ddbd | |
| parent | ec17d636a9e0ccf4f0e9826832510a0faa163e0d (diff) | |
[FIX] account: Dashboard used to open provider bills instead of customer invoice
Correcting patch on PR16042 by Alexis delatre
OPW 726679
Closes #16210
| -rw-r--r-- | addons/account/models/account_journal_dashboard.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/addons/account/models/account_journal_dashboard.py b/addons/account/models/account_journal_dashboard.py index da217ea2db0..6a0d4ffbba2 100644 --- a/addons/account/models/account_journal_dashboard.py +++ b/addons/account/models/account_journal_dashboard.py @@ -312,11 +312,13 @@ class account_journal(models.Model): 'default_type': invoice_type, 'type': invoice_type }) + [action] = self.env.ref('account.%s' % action_name).read() action['context'] = ctx action['domain'] = self._context.get('use_domain', []) - action['views'] = False - action['view_id'] = False + if action_name in ['action_bank_statement_tree', 'action_view_bank_statement_tree']: + action['views'] = False + action['view_id'] = False return action @api.multi |
