Browse Source
Merge pull request #173 from odoonz/qif_fix
FIX QIF errors
pull/179/head
Pedro M. Baeza
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
3 additions and
3 deletions
-
account_bank_statement_import_qif/__manifest__.py
-
account_bank_statement_import_qif/wizards/account_bank_statement_import_qif.py
|
@ -7,7 +7,7 @@ |
|
|
{ |
|
|
{ |
|
|
'name': 'Import QIF Bank Statements', |
|
|
'name': 'Import QIF Bank Statements', |
|
|
'category': 'Accounting', |
|
|
'category': 'Accounting', |
|
|
'version': '11.0.1.0.0', |
|
|
|
|
|
|
|
|
'version': '11.0.1.0.1', |
|
|
'author': 'OpenERP SA,' |
|
|
'author': 'OpenERP SA,' |
|
|
'Tecnativa,' |
|
|
'Tecnativa,' |
|
|
'Odoo Community Association (OCA)', |
|
|
'Odoo Community Association (OCA)', |
|
|
|
@ -35,7 +35,7 @@ class AccountBankStatementImport(models.TransientModel): |
|
|
transactions = [] |
|
|
transactions = [] |
|
|
vals_line = {} |
|
|
vals_line = {} |
|
|
total = 0 |
|
|
total = 0 |
|
|
if header == "Bank": |
|
|
|
|
|
|
|
|
if header in ("Bank", "CCard"): |
|
|
vals_bank_statement = {} |
|
|
vals_bank_statement = {} |
|
|
for line in data_list: |
|
|
for line in data_list: |
|
|
line = line.strip() |
|
|
line = line.strip() |
|
@ -58,7 +58,7 @@ class AccountBankStatementImport(models.TransientModel): |
|
|
vals_line['name'] = ('name' in vals_line and |
|
|
vals_line['name'] = ('name' in vals_line and |
|
|
vals_line['name'] + ': ' + line[1:] or |
|
|
vals_line['name'] + ': ' + line[1:] or |
|
|
line[1:]) |
|
|
line[1:]) |
|
|
elif line[0] == '^': # end of item |
|
|
|
|
|
|
|
|
elif line[0] == '^' and vals_line: # end of item |
|
|
transactions.append(vals_line) |
|
|
transactions.append(vals_line) |
|
|
vals_line = {} |
|
|
vals_line = {} |
|
|
elif line[0] == '\n': |
|
|
elif line[0] == '\n': |
|
|