Don't set default unit price on stock move

issue8119
review255251002
This commit is contained in:
Cédric Krier
2019-04-23 09:10:22 +02:00
parent 7bb72994c8
commit 24c6c6bbcb
2 changed files with 5 additions and 6 deletions
+2 -2
View File
@@ -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')
@@ -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')