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')