Skip to content
Snippets Groups Projects
Commit 0ac1fd90 authored by Tommy (tong)'s avatar Tommy (tong)
Browse files

[FIX] delivery: unit test


closes odoo/odoo#105740

Signed-off-by: default avatarArnold Moyaux (arm) <arm@odoo.com>
parent 9d063921
No related branches found
No related tags found
No related merge requests found
...@@ -44,7 +44,7 @@ class TestDeliveryCost(common.TransactionCase): ...@@ -44,7 +44,7 @@ class TestDeliveryCost(common.TransactionCase):
self.free_delivery = self.env.ref('delivery.free_delivery_carrier') self.free_delivery = self.env.ref('delivery.free_delivery_carrier')
# as the tests hereunder assume all the prices in USD, we must ensure # as the tests hereunder assume all the prices in USD, we must ensure
# that the company actually uses USD # 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( self.env.cr.execute(
"UPDATE res_company SET currency_id = %s WHERE id = %s", "UPDATE res_company SET currency_id = %s WHERE id = %s",
[self.env.ref('base.USD').id, self.env.company.id]) [self.env.ref('base.USD').id, self.env.company.id])
...@@ -129,7 +129,7 @@ class TestDeliveryCost(common.TransactionCase): ...@@ -129,7 +129,7 @@ class TestDeliveryCost(common.TransactionCase):
'name': 'On Site Assistance', 'name': 'On Site Assistance',
'product_id': self.product_2.id, 'product_id': self.product_2.id,
'product_uom_qty': 30, 'product_uom_qty': 30,
'product_uom': self.product_uom_hour.id, 'product_uom': self.product_uom_unit.id,
'price_unit': 38.25, 'price_unit': 38.25,
})], })],
}) })
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment