Skip to content
Snippets Groups Projects
Commit 0d48056d authored by Goffin Simon's avatar Goffin Simon
Browse files

[FIX] sale_timesheet: Traceback when launching tests from sale_timesheet module

When launching in an empty db the following command:

 ./odoo-bin --addons-path=../enterprise/,addons --db-filter=11ent -d 11ent -i sale_timesheet --test-enable --stop-after-init

it raised a traceback because no sale journal was defined.

opw:783489
parent 8fb25e18
Branches
Tags
No related merge requests found
......@@ -231,6 +231,21 @@ class CommonTest(common.SavepointCase):
'currency_id': cls.env.ref('base.USD').id,
'company_id': cls.env.user.company_id.id,
})
cls.bank_journal_euro = cls.env['account.journal'].create({
'name': 'Sale Journal - Test',
'type': 'sale',
'code': 'SJT',
'currency_id': cls.env.ref('base.EUR').id,
})
cls.bank_journal_usd = cls.env['account.journal'].create({
'name': 'Sale Journal - Test US',
'type': 'sale',
'code': 'SJTU',
'currency_id': cls.env.ref('base.USD').id,
})
cls.pricelist_eur = cls.env['product.pricelist'].create({
'name': 'EUR pricelist',
'active': True,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment