Use list price used to fill unit price on stock move in test scenario

Since 117e51123978 there is a list price field on the variant which is empty.

Closes #14343
This commit is contained in:
Cédric Krier
2025-11-01 11:10:56 +01:00
parent 3eed891976
commit a21df22391
2 changed files with 5 additions and 5 deletions
@@ -90,14 +90,14 @@ Plan to ship some products in 3 weeks::
>>> move.quantity = 4
>>> move.from_location = output_loc
>>> move.to_location = customer_loc
>>> move.unit_price = product1.list_price
>>> move.unit_price = product1.list_price_used
>>> move.currency = currency
>>> move = shipment_out1.outgoing_moves.new()
>>> move.product = product2
>>> move.quantity = 6
>>> move.from_location = output_loc
>>> move.to_location = customer_loc
>>> move.unit_price = product2.list_price
>>> move.unit_price = product2.list_price_used
>>> move.currency = currency
>>> shipment_out1.save()
@@ -109,7 +109,7 @@ Plan to ship some products in 3 weeks::
>>> move.quantity = 8
>>> move.from_location = output_loc
>>> move.to_location = customer_loc
>>> move.unit_price = product1.list_price
>>> move.unit_price = product1.list_price_used
>>> move.currency = currency
>>> shipment_out2.save()
@@ -121,7 +121,7 @@ Plan to ship some products in 3 weeks::
>>> move.quantity = 4
>>> move.from_location = output_loc
>>> move.to_location = customer_loc
>>> move.unit_price = product1.list_price
>>> move.unit_price = product1.list_price_used
>>> move.currency = currency
>>> shipment_out3.save()
@@ -118,7 +118,7 @@ Plan to ship in 3 weeks::
>>> move.quantity = 7
>>> move.from_location = warehouse.output_location
>>> move.to_location = customer_loc
>>> move.unit_price = product.list_price
>>> move.unit_price = product.list_price_used
>>> move.currency = currency
>>> shipment_out.save()
>>> shipment_out.click('wait')