Browse Source

[IMP] Backport from master at 04daefd2d1

pull/215/head
Laurent Mignon 10 years ago
committed by Erick Tejada
parent
commit
968c925c4a
  1. 1
      account_bank_statement_import_qif/__init__.py
  2. 3
      account_bank_statement_import_qif/tests/test_import_bank_statement.py

1
account_bank_statement_import_qif/__init__.py

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from . import account_bank_statement_import_qif
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

3
account_bank_statement_import_qif/tests/test_import_bank_statement.py

@ -23,8 +23,7 @@ class TestQifFile(TransactionCase):
data_file=qif_file,
))
context = {
'journal_id': self.registry('ir.model.data').get_object_reference(cr, uid, 'account', 'bank_journal')[1],
'allow_auto_create_journal': True,
'journal_id': self.registry('ir.model.data').get_object_reference(cr, uid, 'account', 'bank_journal')[1]
}
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]

Loading…
Cancel
Save