Browse Source

[ENH] Support both old and new style parse results.

pull/142/head
Ronald Portier (Therp BV) 9 years ago
committed by Nicolas JEUDY
parent
commit
3be2b77bd7
  1. 8
      account_bank_statement_import_ofx/account_bank_statement_import_ofx.py

8
account_bank_statement_import_ofx/account_bank_statement_import_ofx.py

@ -67,12 +67,12 @@ class AccountBankStatementImport(models.TransientModel):
raise Warning(_("The following problem occurred during import. "
"The file might not be valid.\n\n %s" % e.message))
return [{
'currency_code': ofx.account.statement.currency,
'account_number': ofx.account.number,
vals_bank_statement = {
'name': ofx.account.routing_number,
'transactions': transactions,
'balance_start': ofx.account.statement.balance,
'balance_end_real':
float(ofx.account.statement.balance) + total_amt,
}]
}
return ofx.account.statement.currency, ofx.account.number, [
vals_bank_statement]
Loading…
Cancel
Save