Skip to content
Snippets Groups Projects
Commit b1162147 authored by mreficent's avatar mreficent Committed by De Paoli Quentin
Browse files

[FIX] pos & website_event_sale: fix some tests

parent 6eefb7fb
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,7 @@ class TestUi(odoo.tests.HttpCase):
# euro's. this will cause issues as the sale journal is in
# USD, because of this all products would have a different
# price
main_company.currency_id = env.ref('base.USD')
cr.execute("UPDATE res_company SET currency_id = %s WHERE id = %s", [env.ref('base.USD').id, main_company.id])
test_sale_journal = journal_obj.create({'name': 'Sale Journal - Test',
'code': 'TSJ',
......
......@@ -12,7 +12,7 @@ class TestUi(odoo.tests.HttpCase):
# - that main demo company is gelocated in US
# - that this test awaits for hardcoded USDs amount
# we have to force company currency as USDs only for this test
self.env.ref('base.main_company').write({'currency_id': self.env.ref('base.USD').id})
self.cr.execute("UPDATE res_company SET currency_id = %s WHERE id = %s", [self.env.ref('base.USD').id, self.env.ref('base.main_company').id])
self.phantom_js("/", "odoo.__DEBUG__.services['web_tour.tour'].run('event_buy_tickets')", "odoo.__DEBUG__.services['web_tour.tour'].tours.event_buy_tickets.ready", login="admin")
def test_demo(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment