[IMP] delivery: make test multicurrency-resistant

This commit is contained in:
Richard Mathot
2017-06-13 14:03:06 +02:00
parent 5d40c0d77d
commit 824a7e86ed
@@ -27,6 +27,9 @@ class TestDeliveryCost(common.TransactionCase):
self.product_2 = self.env.ref('product.product_product_2')
self.product_category = self.env.ref('product.product_category_all')
self.free_delivery = self.env.ref('delivery.free_delivery_carrier')
# as the tests hereunder assume all the prices in USD, we must ensure
# that the company actually uses USD
self.env.user.company_id.write({'currency_id': self.env.ref('base.USD').id})
def test_00_delivery_cost(self):
# In order to test Carrier Cost