changeset 0699d763518c in modules/stock_lot_unit:default
details:
https://hg.tryton.org/modules/stock_lot_unit?cmd=changeset;node=0699d763518c
description:
Don't set default unit price on stock move
issue8119
review255251002
diffstat:
tests/scenario_stock_lot_unit.rst | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diffs (48 lines):
diff -r c77a3a65b95b -r 0699d763518c tests/scenario_stock_lot_unit.rst
--- a/tests/scenario_stock_lot_unit.rst Sun Apr 07 19:50:04 2019 +0200
+++ b/tests/scenario_stock_lot_unit.rst Tue Apr 23 09:10:22 2019 +0200
@@ -67,11 +67,13 @@
>>> 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 @@
>>> 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 @@
>>> 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 @@
>>> 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