[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 b11621476b
This commit is contained in:
Christophe Simonis
2018-04-06 17:52:21 +02:00
parent 25912970ce
commit 00ef138ce0
+1 -1
View File
@@ -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',