Do not deduct recreated moves in remaining quantity if they are not done

issue6484
review38361002
This commit is contained in:
Cédric Krier committed 2017-05-09 19:17:44 +02:00
1 parent b8a1b090b1
commit b5393bf96f
1 file changed
-1
-1
View File
@@ -1129,7 +1129,6 @@ class SaleLine(sequence_ordered(), ModelSQL, ModelView):
if self.product.type == 'service':
return
skip_ids = set(x.id for x in self.moves_ignored)
skip_ids.update(x.id for x in self.moves_recreated)
quantity = abs(self.quantity)
for move in self.moves:
if move.state == 'done' or move.id in skip_ids: