[FIX] account: no chart tests with minimum 1 journal
This is a fixup of: - original commit:0d48056d63Fixed the execution of no-chart tests in sale_timesheet standalone i.e. launching odoo with `-i sale_timesheet --test-enable` - commit6eed6a503bomitted 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:
@@ -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, ... """
|
||||
|
||||
Reference in New Issue
Block a user