No more need to set cost price on move

issue5017
review20441003
This commit is contained in:
Cédric Krier committed 2015-10-08 19:46:51 +02:00
1 parent 62b9acbc37
commit cdf71ba8bd
2 files changed
-7

No files matched your search

-1
View File
@@ -104,6 +104,5 @@ class SaleLine:
move = self.get_move('out')
if move is not None:
move.from_location = self.sale.drop_location
move.cost_price = move.unit_price
moves.append(move)
return moves
@@ -194,8 +194,6 @@ Receiving only 100 products::
>>> config.user = stock_user.id
>>> move, = shipment.supplier_moves
>>> move.unit_price == move.cost_price
True
>>> move.quantity = 100
>>> shipment.click('ship')
>>> config.user = sale_user.id
@@ -224,13 +222,9 @@ The purchase is now waiting for his new drop shipment::
>>> move, = shipment.customer_moves
>>> move.quantity
150.0
>>> move.unit_price == move.cost_price
True
>>> move, = shipment.supplier_moves
>>> move.quantity
150.0
>>> move.unit_price == move.cost_price
True
Let's cancel the shipment and handle the issue on the purchase.
As a consequence the sale order is now in exception::