[FIX] account: Dashboard used to open provider bills instead of customer invoice

Correcting patch on PR16042 by Alexis delatre
OPW 726679
Closes #16210
This commit is contained in:
Lucas Perais (lpe)
2017-04-04 09:48:54 +02:00
parent ec17d636a9
commit fc0d2e2c83
@@ -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