From 964b1fca678fecef7b0842a0c11319e4755eb2e4 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Fri, 3 Mar 2017 09:36:44 +0100 Subject: [PATCH] Better context from wizard --- .../wizard/account_move_line_filter.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/account_move_line_filter_wizard/wizard/account_move_line_filter.py b/account_move_line_filter_wizard/wizard/account_move_line_filter.py index 869c952..1671103 100644 --- a/account_move_line_filter_wizard/wizard/account_move_line_filter.py +++ b/account_move_line_filter_wizard/wizard/account_move_line_filter.py @@ -53,7 +53,10 @@ class AccountMoveLineFilterWizard(models.TransientModel): self.ensure_one() action = self.env['ir.actions.act_window'].for_xml_id( 'account', 'action_account_moves_all_a') - action['context'] = {'search_default_account_id': [self.account_id.id]} + action['context'] = { + 'search_default_account_id': [self.account_id.id], + 'journal_show_code_only': True, + } if self.partner_id: action['context']['search_default_partner_id'] =\ [self.partner_id.id]