[FIX] pos & website_event_sale: fix some tests

Related to commit https://github.com/odoo/odoo/commit/0e881fcd3a5671c4fe84b2a47c9d3611e4b823a1
This commit is contained in:
mreficent
2018-04-04 09:36:18 +02:00
committed by De Paoli Quentin
parent 6eefb7fb39
commit b11621476b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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',
+1 -1
View File
@@ -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):