[FIX] account: no chart tests with minimum 1 journal

This is a fixup of:
- original commit: 0d48056d63
Fixed the execution of no-chart tests in sale_timesheet standalone
i.e. launching odoo with `-i sale_timesheet --test-enable`

- commit 6eed6a503b omitted those fixes

This commit put them in the parent class, since it is always useful to have
sale journals

OPW 1939361

closes odoo/odoo#31119
This commit is contained in:
Lucas Perais (lpe)
2019-02-15 08:21:27 +00:00
parent 43ce83974b
commit 24b771f16a
@@ -46,6 +46,12 @@ class TestAccountNoChartCommon(SavepointCase):
'property_account_receivable_id': cls.account_receivable.id,
})
cls.sale_journal0 = cls.env['account.journal'].create({
'name': 'Sale Journal',
'type': 'sale',
'code': 'SJT0',
})
@classmethod
def setUpAdditionalAccounts(cls):
""" Set up some addionnal accounts: expenses, revenue, ... """