Browse Source

Merge pull request #104 from akretion/10-fix-save-file

[10.0][FIX] crash in account_bank_statement_save_file
pull/115/head
Alexis de Lattre 7 years ago
committed by GitHub
parent
commit
2810a7cec8
  1. 1
      account_bank_statement_import_ofx/wizard/account_bank_statement_import.py
  2. 1
      account_bank_statement_import_qif/wizards/account_bank_statement_import_qif.py
  3. 2
      account_bank_statement_import_save_file/models/account_bank_statement_import.py

1
account_bank_statement_import_ofx/wizard/account_bank_statement_import.py

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

1
account_bank_statement_import_qif/wizards/account_bank_statement_import_qif.py

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

2
account_bank_statement_import_save_file/models/account_bank_statement_import.py

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

Loading…
Cancel
Save