From 0ac565bc520a389d040c7ec3af2a919312151ba8 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Wed, 24 Jun 2015 07:54:19 +0200 Subject: [PATCH] [FIX] l10n_es_account_bank_statement_import_n43: Mostrar campo journal_id --- .../models/account_bank_statement_import_n43.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/l10n_es_account_bank_statement_import_n43/models/account_bank_statement_import_n43.py b/l10n_es_account_bank_statement_import_n43/models/account_bank_statement_import_n43.py index 07f15824d1b..a6b1beae712 100644 --- a/l10n_es_account_bank_statement_import_n43/models/account_bank_statement_import_n43.py +++ b/l10n_es_account_bank_statement_import_n43/models/account_bank_statement_import_n43.py @@ -287,3 +287,8 @@ def _parse_file(self, data_file): 'balance_end_real': n43 and n43[-1]['saldo_fin'] or 0.0, } return 'EUR', False, [vals_bank_statement] + + @api.model + def _get_hide_journal_field(self): + # Show the journal_id field if not coming from a context where is set + return bool(self.env.context.get('journal_id'))