Update PurchaseLine.get_move to the new API

issue5059
This commit is contained in:
Cédric Krier
2015-12-31 17:04:20 +01:00
parent 54a9ebe86a
commit 04c033657b
+2 -2
View File
@@ -132,8 +132,8 @@ class PurchaseLine:
return self.purchase.drop_location.id
return result
def get_move(self):
move = super(PurchaseLine, self).get_move()
def get_move(self, move_type):
move = super(PurchaseLine, self).get_move(move_type)
if move and self.purchase.customer:
move.cost_price = move.unit_price
return move