mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
Correct tests
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user