mirror of
https://github.com/OCA/bank-statement-import.git
synced 2025-01-20 12:37:43 +02:00
Shorter bank statement name, as requested by Pedro
This commit is contained in:
@@ -84,7 +84,7 @@ class AccountBankStatementImport(models.TransientModel):
|
||||
))
|
||||
|
||||
vals_bank_statement = {
|
||||
'name': '%s-%s' % (ofx.account.routing_number, ofx.account.number),
|
||||
'name': ofx.account.number,
|
||||
'transactions': transactions,
|
||||
'balance_start': ofx.account.statement.balance,
|
||||
'balance_end_real':
|
||||
|
||||
@@ -22,7 +22,7 @@ class TestOfxFile(TransactionCase):
|
||||
dict(data_file=ofx_file))
|
||||
bank_statement.import_file()
|
||||
bank_st_record = self.bank_statement_model.search(
|
||||
[('name', '=', '000000123-123456')])[0]
|
||||
[('name', '=', '123456')])[0]
|
||||
self.assertEquals(bank_st_record.balance_start, 2156.56)
|
||||
self.assertEquals(bank_st_record.balance_end_real, 1796.56)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user