mirror of
https://github.com/OCA/bank-statement-import.git
synced 2025-01-20 12:37:43 +02:00
Enable allow_auto_create_journal in the automated tests
This commit is contained in:
committed by
Alexis de Lattre
parent
10ed6bb570
commit
07bd88fa54
@@ -25,7 +25,7 @@ class TestOfxFile(TransactionCase):
|
|||||||
bank_statement_id = self.statement_import_model.create(cr, uid, dict(
|
bank_statement_id = self.statement_import_model.create(cr, uid, dict(
|
||||||
data_file=ofx_file,
|
data_file=ofx_file,
|
||||||
))
|
))
|
||||||
self.statement_import_model.import_file(cr, uid, [bank_statement_id])
|
self.statement_import_model.import_file(cr, uid, [bank_statement_id], {'allow_auto_create_journal': True})
|
||||||
statement_id = self.bank_statement_model.search(cr, uid, [('name', '=', '000000123')])[0]
|
statement_id = self.bank_statement_model.search(cr, uid, [('name', '=', '000000123')])[0]
|
||||||
bank_st_record = self.bank_statement_model.browse(cr, uid, statement_id)
|
bank_st_record = self.bank_statement_model.browse(cr, uid, statement_id)
|
||||||
self.assertEquals(bank_st_record.balance_start, 2516.56)
|
self.assertEquals(bank_st_record.balance_start, 2516.56)
|
||||||
|
|||||||
Reference in New Issue
Block a user