Skip to content

Commit

Permalink
[17.0][FIX] correcting test
Browse files Browse the repository at this point in the history
  • Loading branch information
edescalona committed Nov 29, 2024
1 parent 0e34dca commit ba4e465
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rental_pricelist_interval/tests/test_rental_pricelist.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ def setUp(self):
self.uom_interval = self.env.ref(
"rental_pricelist_interval.product_uom_interval"
)
self.pricelist0 = self.env.ref("product.list0")
self.pricelist_interval = self.env.ref(
"rental_pricelist_interval.pricelist_interval"
)
Expand Down Expand Up @@ -151,7 +150,7 @@ def test_00_interval_price(self):
self.assertEqual(line.price_unit, 1000)
self.assertEqual(line.price_subtotal, 2000) # 2 * 1000
# Change Pricelist
self.rental_order.pricelist_id = self.pricelist0
self.rental_order.pricelist_id = self.pricelist_interval
_run_sol_onchange_display_product_id(line)
_run_sol_onchange_date(line, end_date=self.date_12_day_later)
self.assertEqual(line.price_unit, 200)
Expand Down

0 comments on commit ba4e465

Please sign in to comment.