From 705c7b986059bb10c4842377f90bcfbdeb37f3a5 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_stock_lot_unit.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/scenario_stock_lot_unit.rst b/tests/scenario_stock_lot_unit.rst index ee73667e23..cba4fdcdc6 100644 --- a/tests/scenario_stock_lot_unit.rst +++ b/tests/scenario_stock_lot_unit.rst @@ -67,11 +67,13 @@ Create an incoming shipment without lot:: >>> move1 = shipment.incoming_moves.new() >>> move1.product = product >>> move1.quantity = 60 + >>> move1.unit_price = Decimal('8') >>> move1.from_location = supplier_loc >>> move1.to_location = input_loc >>> move2 = shipment.incoming_moves.new() >>> move2.product = product >>> move2.quantity = 40 + >>> move2.unit_price = Decimal('8') >>> move2.from_location = supplier_loc >>> move2.to_location = input_loc >>> shipment.click('receive') @@ -93,6 +95,7 @@ Let's ship a product with a lot:: >>> move = shipment.outgoing_moves.new() >>> move.product = product >>> move.quantity = 1 + >>> move.unit_price = Decimal('20') >>> move.from_location = output_loc >>> move.to_location = customer_loc >>> move.lot = lot @@ -112,12 +115,14 @@ Let's ship now two times the same lot:: >>> move1 = shipment.outgoing_moves.new() >>> move1.product = product >>> move1.quantity = 1 + >>> move1.unit_price = Decimal('20') >>> move1.from_location = output_loc >>> move1.to_location = customer_loc >>> move1.lot = lot >>> move2 = shipment.outgoing_moves.new() >>> move2.product = product >>> move2.quantity = 1 + >>> move2.unit_price = Decimal('20') >>> move2.from_location = output_loc >>> move2.to_location = customer_loc >>> move2.lot = lot @@ -141,6 +146,7 @@ Now let's ship one move with a quantity bigger than lot unit quantity:: >>> move = shipment.outgoing_moves.new() >>> move.product = product >>> move.quantity = 4 + >>> move.unit_price = Decimal('20') >>> move.from_location = output_loc >>> move.to_location = customer_loc >>> move.lot = lot