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'))