Commit 5caab04c authored by Rémi - Le Filament's avatar Rémi - Le Filament
Browse files

[FIX] Update fields for v14

parent 9afdfd01
......@@ -116,14 +116,12 @@ class AccountBankStatementImport(models.TransientModel):
libelle += " */* "+transaction.group('note')
vals_line = {
'date': datetime.datetime.strptime(transaction.group('date'), self.regexp_version[file_version]['line_date_format']).strftime('%Y-%m-%d'),
'name': libelle,
'payment_ref': libelle,
#'ref': transaction.group('unique_import_id'),
'amount': transaction_amount,
#'note': transaction.group('note'),
'unique_import_id': str(index)+transaction.group('date')+transaction.group('name')+str(transaction_amount)+transaction.group('note'),
'account_number': bank_account_number,
'partner_id': False,
'bank_account_id': self._find_bank_account_id(bank_account_number),
}
total_amt += transaction_amount
transactions.append(vals_line)
......@@ -143,4 +141,3 @@ class AccountBankStatementImport(models.TransientModel):
'balance_end_real': closing_balance,
}
return currency, bank_account_number, [vals_bank_statement]
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment