From 00ef138ce038d4f8e5a9b7ad2f23ab483e282ebb Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Fri, 6 Apr 2018 17:48:52 +0200 Subject: [PATCH] [REVERT] point_of_sale: change back to a write() to change company currency This test being run during install, thih does not provoque any problems as no CoA are already installed. This partially revert commit b11621476bcee658e912cbfbd9569b7d29ca6b53 --- addons/point_of_sale/tests/test_frontend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/point_of_sale/tests/test_frontend.py b/addons/point_of_sale/tests/test_frontend.py index 83214d48fad..b3dae4e9350 100644 --- a/addons/point_of_sale/tests/test_frontend.py +++ b/addons/point_of_sale/tests/test_frontend.py @@ -265,7 +265,7 @@ class TestUi(odoo.tests.HttpCase): # euro's. this will cause issues as the sales journal is in # USD, because of this all products would have a different # price - cr.execute("UPDATE res_company SET currency_id = %s WHERE id = %s", [env.ref('base.USD').id, main_company.id]) + main_company.currency_id = env.ref('base.USD') test_sale_journal = journal_obj.create({'name': 'Sales Journal - Test', 'code': 'TSJ',