Skip to content

Commit

Permalink
[FIX] l10n_es_account_bank_statement_import_n43: Mostrar campo journa…
Browse files Browse the repository at this point in the history
…l_id
  • Loading branch information
pedrobaeza committed Jun 24, 2015
1 parent 40d2e8d commit 0ac565b
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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'))

0 comments on commit 0ac565b

Please sign in to comment.