details: https://code.tryton.org/tryton/commit/4329aec140b0
branch: default
user: Cédric Krier <[email protected]>
date: Sat Nov 01 11:10:56 2025 +0100
description:
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
diffstat:
modules/stock_quantity_early_planning/tests/scenario_stock_quantity_early_planning.rst
| 8 ++++----
modules/stock_quantity_early_planning/tests/scenario_stock_quantity_early_planning_incoming.rst
| 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diffs (50 lines):
diff -r b3594efd06b3 -r 4329aec140b0
modules/stock_quantity_early_planning/tests/scenario_stock_quantity_early_planning.rst
---
a/modules/stock_quantity_early_planning/tests/scenario_stock_quantity_early_planning.rst
Sun Nov 02 14:33:49 2025 +0100
+++
b/modules/stock_quantity_early_planning/tests/scenario_stock_quantity_early_planning.rst
Sat Nov 01 11:10:56 2025 +0100
@@ -90,14 +90,14 @@
>>> 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 @@
>>> 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 @@
>>> 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()
diff -r b3594efd06b3 -r 4329aec140b0
modules/stock_quantity_early_planning/tests/scenario_stock_quantity_early_planning_incoming.rst
---
a/modules/stock_quantity_early_planning/tests/scenario_stock_quantity_early_planning_incoming.rst
Sun Nov 02 14:33:49 2025 +0100
+++
b/modules/stock_quantity_early_planning/tests/scenario_stock_quantity_early_planning_incoming.rst
Sat Nov 01 11:10:56 2025 +0100
@@ -118,7 +118,7 @@
>>> 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')