Better tests

This commit is contained in:
Andrea
2019-01-17 09:51:27 +01:00
committed by Andrea Stirpe
parent 76a63f40ee
commit a9b3b309f1
2 changed files with 6 additions and 8 deletions

View File

@@ -14,9 +14,8 @@ class TestComputeSpreadBoard(common.TransactionCase):
type_receivable = self.env.ref('account.data_account_type_receivable')
type_expenses = self.env.ref('account.data_account_type_expenses')
journal = self.env['account.journal'].search([
('type', '=', 'general')],
limit=1)
journal = self.env['account.journal'].create({
'name': 'Test', 'type': 'general', 'code': 'test'})
self.receivable_account = self.env['account.account'].create({
'name': 'test_account_receivable',