mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
[IMP] account_statement_base_import: support csv without header
(lp:c2c-financial-addons/6.1 rev 87.1.1)
This commit is contained in:
@@ -164,7 +164,7 @@ class AccountStatementProfil(Model):
|
||||
parser = new_bank_statement_parser(prof.import_type, ftype=ftype)
|
||||
result_row_list = parser.parse(file_stream)
|
||||
# Check all key are present in account.bank.statement.line !!
|
||||
parsed_cols = result_row_list[0].keys()
|
||||
parsed_cols = parser.get_st_line_vals(result_row_list[0]).keys()
|
||||
for col in parsed_cols:
|
||||
if col not in statement_line_obj._columns:
|
||||
raise osv.except_osv(
|
||||
|
||||
Reference in New Issue
Block a user