Skip to content

Commit

Permalink
[FIX] crash in account_bank_statement_save_file
Browse files Browse the repository at this point in the history
  • Loading branch information
alexis-via committed Apr 11, 2017
1 parent b2addf7 commit aefe0aa
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ def _prepare_ofx_transaction_line(self, transaction):
}
return vals

@api.model
def _parse_file(self, data_file):
ofx = self._check_ofx(data_file)
if not ofx:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ class AccountBankStatementImport(models.TransientModel):
def _check_qif(self, data_file):
return data_file.strip().startswith('!Type:')

@api.model
def _parse_file(self, data_file):
if not self._check_qif(data_file):
return super(AccountBankStatementImport, self)._parse_file(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class AccountBankStatementImport(models.TransientModel):
_inherit = 'account.bank.statement.import'

@api.model
@api.multi
def import_file(self):
action = \
super(AccountBankStatementImport, self).import_file()
Expand Down

0 comments on commit aefe0aa

Please sign in to comment.