changeset 9e58b923752e in modules/stock_location_move:default
details:
https://hg.tryton.org/modules/stock_location_move?cmd=changeset;node=9e58b923752e
description:
Don't set default unit price on stock move
issue8119
review255251002
diffstat:
tests/scenario_stock_location_move_empty.rst | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diffs (47 lines):
diff -r 86a068d5a571 -r 9e58b923752e
tests/scenario_stock_location_move_empty.rst
--- a/tests/scenario_stock_location_move_empty.rst Sun Apr 07 19:50:04
2019 +0200
+++ b/tests/scenario_stock_location_move_empty.rst Tue Apr 23 09:10:22
2019 +0200
@@ -76,6 +76,7 @@
>>> incoming_move = StockMove()
>>> incoming_move.product = product1
>>> incoming_move.quantity = 1
+ >>> incoming_move.unit_price = Decimal('0')
>>> incoming_move.from_location = supplier_loc
>>> incoming_move.to_location = storage1
>>> incoming_move.effective_date = yesterday
@@ -84,6 +85,7 @@
>>> incoming_move = StockMove()
>>> incoming_move.product = product2
>>> incoming_move.quantity = 1
+ >>> incoming_move.unit_price = Decimal('0')
>>> incoming_move.from_location = supplier_loc
>>> incoming_move.to_location = pallet1
>>> incoming_move.effective_date = yesterday
@@ -92,6 +94,7 @@
>>> incoming_move = StockMove()
>>> incoming_move.product = product3
>>> incoming_move.quantity = 2
+ >>> incoming_move.unit_price = Decimal('0')
>>> incoming_move.from_location = supplier_loc
>>> incoming_move.to_location = pallet2
>>> incoming_move.effective_date = yesterday
@@ -106,16 +109,19 @@
>>> move = shipment.outgoing_moves.new()
>>> move.product = product1
>>> move.quantity = 1
+ >>> move.unit_price = Decimal('0')
>>> move.from_location = output_loc
>>> move.to_location = customer_loc
>>> move = shipment.outgoing_moves.new()
>>> move.product = product2
>>> move.quantity = 1
+ >>> move.unit_price = Decimal('0')
>>> move.from_location = output_loc
>>> move.to_location = customer_loc
>>> move = shipment.outgoing_moves.new()
>>> move.product = product3
>>> move.quantity = 1
+ >>> move.unit_price = Decimal('0')
>>> move.from_location = output_loc
>>> move.to_location = customer_loc
>>> shipment.click('wait')