[FIX] crash in account_bank_statement_save_file

This commit is contained in:
Alexis de Lattre
2017-04-11 23:01:16 +02:00
parent b2addf7cd2
commit aefe0aa78f
3 changed files with 1 additions and 3 deletions

View File

@@ -47,7 +47,6 @@ class AccountBankStatementImport(models.TransientModel):
}
return vals
@api.model
def _parse_file(self, data_file):
ofx = self._check_ofx(data_file)
if not ofx:

View File

@@ -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(

View File

@@ -9,7 +9,7 @@ from odoo import models, api
class AccountBankStatementImport(models.TransientModel):
_inherit = 'account.bank.statement.import'
@api.model
@api.multi
def import_file(self):
action = \
super(AccountBankStatementImport, self).import_file()