mirror of
https://github.com/OCA/bank-statement-import.git
synced 2025-01-20 12:37:43 +02:00
[IMP] Backport from master at 04daefd2d101d90daf5782173b95f31f3bd9e1b6
This commit is contained in:
committed by
Víctor Martínez
parent
e637b9cb3c
commit
121448f0fd
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
from . import account_bank_statement_import_qif
|
from . import account_bank_statement_import_qif
|
||||||
|
|
||||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
|
||||||
|
|||||||
@@ -23,8 +23,7 @@ class TestQifFile(TransactionCase):
|
|||||||
data_file=qif_file,
|
data_file=qif_file,
|
||||||
))
|
))
|
||||||
context = {
|
context = {
|
||||||
'journal_id': self.registry('ir.model.data').get_object_reference(cr, uid, 'account', 'bank_journal')[1],
|
'journal_id': self.registry('ir.model.data').get_object_reference(cr, uid, 'account', 'bank_journal')[1]
|
||||||
'allow_auto_create_journal': True,
|
|
||||||
}
|
}
|
||||||
self.statement_import_model.import_file(cr, uid, [bank_statement_id], context=context)
|
self.statement_import_model.import_file(cr, uid, [bank_statement_id], context=context)
|
||||||
line_id = self.bank_statement_line_model.search(cr, uid, [('name', '=', 'YOUR LOCAL SUPERMARKET')])[0]
|
line_id = self.bank_statement_line_model.search(cr, uid, [('name', '=', 'YOUR LOCAL SUPERMARKET')])[0]
|
||||||
|
|||||||
Reference in New Issue
Block a user