Don't set default unit price on stock move
issue8119 review255251002
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user