From 0ac1fd905312dd24681830f7e15c3230b8f60d3a Mon Sep 17 00:00:00 2001 From: "Tommy (tong)" <tong@odoo.com> Date: Tue, 15 Nov 2022 08:53:39 +0000 Subject: [PATCH] [FIX] delivery: unit test closes odoo/odoo#105740 Signed-off-by: Arnold Moyaux (arm) <arm@odoo.com> --- addons/delivery/tests/test_delivery_cost.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/delivery/tests/test_delivery_cost.py b/addons/delivery/tests/test_delivery_cost.py index 4e39aa300778..c51954eed274 100644 --- a/addons/delivery/tests/test_delivery_cost.py +++ b/addons/delivery/tests/test_delivery_cost.py @@ -44,7 +44,7 @@ class TestDeliveryCost(common.TransactionCase): 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 - # We do an invalidate_cache so the cache is aware of it too. + # We do an invalidate_cache so the cache is aware of it too. self.env.cr.execute( "UPDATE res_company SET currency_id = %s WHERE id = %s", [self.env.ref('base.USD').id, self.env.company.id]) @@ -129,7 +129,7 @@ class TestDeliveryCost(common.TransactionCase): 'name': 'On Site Assistance', 'product_id': self.product_2.id, 'product_uom_qty': 30, - 'product_uom': self.product_uom_hour.id, + 'product_uom': self.product_uom_unit.id, 'price_unit': 38.25, })], }) -- GitLab