[FIX]moved_qty uses moves not procurements

This commit is contained in:
aheficent
2018-01-22 11:46:33 +01:00
committed by Carlos Vallés Fuster
parent 1c21346614
commit 138ea708ba

View File

@@ -71,7 +71,7 @@ class RmaOrderLine(models.Model):
op = ops['=']
else:
op = ops['!=']
for move in rec.procurement_ids.mapped('move_ids').filtered(
for move in rec.move_ids.filtered(
lambda m: m.state in states and op(m.location_id.usage,
rec.type)):
qty += product_obj._compute_quantity(