From 24c6c6bbcbe7b49ea4b1b76782a4e6fd86c5eb3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 23 Apr 2019 09:10:22 +0200 Subject: [PATCH] Don't set default unit price on stock move issue8119 review255251002 --- tests/scenario_purchase_shipment_cost.rst | 4 ++-- .../scenario_purchase_shipment_cost_with_account_stock.rst | 7 +++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/tests/scenario_purchase_shipment_cost.rst b/tests/scenario_purchase_shipment_cost.rst index 13da553595..209eed9dde 100644 --- a/tests/scenario_purchase_shipment_cost.rst +++ b/tests/scenario_purchase_shipment_cost.rst @@ -80,8 +80,7 @@ Receive a single product line:: >>> move.to_location = shipment.warehouse.input_location >>> move.product = product >>> move.quantity = 50 - >>> move.unit_price - Decimal('8') + >>> move.unit_price = Decimal('8') >>> shipment.carrier = carrier >>> shipment.cost Decimal('3') @@ -105,6 +104,7 @@ Receive many product lines:: ... move.to_location = shipment.warehouse.input_location ... move.product = product ... move.quantity = quantity + ... move.unit_price = Decimal('8') >>> shipment.carrier = carrier >>> shipment.cost Decimal('3') diff --git a/tests/scenario_purchase_shipment_cost_with_account_stock.rst b/tests/scenario_purchase_shipment_cost_with_account_stock.rst index a55bbbf36b..f711be1a45 100644 --- a/tests/scenario_purchase_shipment_cost_with_account_stock.rst +++ b/tests/scenario_purchase_shipment_cost_with_account_stock.rst @@ -131,16 +131,14 @@ Receive a single product line:: >>> move.to_location = shipment.warehouse.input_location >>> move.product = product >>> move.quantity = 30 - >>> move.unit_price - Decimal('8') + >>> move.unit_price = Decimal('8') >>> move = Move() >>> shipment.incoming_moves.append(move) >>> move.from_location = supplier_location >>> move.to_location = shipment.warehouse.input_location >>> move.product = product_average >>> move.quantity = 20 - >>> move.unit_price - Decimal('8') + >>> move.unit_price = Decimal('8') >>> shipment.carrier = carrier >>> shipment.cost Decimal('3') @@ -178,6 +176,7 @@ Receive many product lines:: ... move.to_location = shipment.warehouse.input_location ... move.product = product ... move.quantity = quantity + ... move.unit_price = Decimal('8') >>> shipment.carrier = carrier >>> shipment.cost Decimal('3')