mirror of
https://github.com/OCA/bank-statement-import.git
synced 2025-01-20 12:37:43 +02:00
[FIX] crash in account_bank_statement_save_file
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user