Correct tests

This commit is contained in:
Matthieu Dietrich
2016-04-28 10:31:33 +02:00
parent 1ac711e6ef
commit 6d2adbca2f
2 changed files with 2 additions and 8 deletions

View File

@@ -2,10 +2,7 @@
In order to test the banking framework, I first need to create a journal
-
!record {model: account.journal, id: account.bank_journal}:
used_for_import: True
partner_id: base.res_partner_12
commission_account_id: account.a_expense
receivable_account_id: account.a_expense
used_for_completion: True
rule_ids:
- bank_statement_completion_rule_4
- bank_statement_completion_rule_2

View File

@@ -73,10 +73,7 @@ class base_completion(common.TransactionCase):
'account_statement_base_import.bank_statement_completion_rule_3')
# Create the profile
self.journal.write({
'used_for_import': True,
'partner_id': self.partner.id,
'commission_account_id': self.account_id,
'receivable_account_id': self.account_id,
'used_for_completion': True,
'rule_ids': [(6, 0, [self.completion_rule_id])]
})
# Create a bank statement