Browse Source

[FIX] No journal_id keyword parm on _create_bank_account(..)

pull/15/head
Ronald Portier (Therp BV) 10 years ago
parent
commit
b3a1691db1
  1. 5
      account_bank_statement_import/tests/test_import_bank_statement.py

5
account_bank_statement_import/tests/test_import_bank_statement.py

@ -65,10 +65,7 @@ class TestAccountBankStatemetImport(TransactionCase):
""" """
journal = self.account_journal_model.browse(self.journal_id) journal = self.account_journal_model.browse(self.journal_id)
expected_id = journal.company_id.partner_id.id expected_id = journal.company_id.partner_id.id
st_import = self.statement_import_model.sudo(self.other_user_id_a.id) st_import = self.statement_import_model.sudo(self.other_user_id_a.id)
bank = st_import._create_bank_account( bank = st_import._create_bank_account(
'001251882303', company_id=self.company_id) '001251882303', company_id=self.company_id)
self.assertEqual(bank.partner_id.id,
expected_id)
self.assertEqual(bank.partner_id.id, expected_id)
Loading…
Cancel
Save