mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[FIX]moved_qty uses moves not procurements
This commit is contained in:
committed by
Carlos Vallés Fuster
parent
1c21346614
commit
138ea708ba
@@ -71,7 +71,7 @@ class RmaOrderLine(models.Model):
|
|||||||
op = ops['=']
|
op = ops['=']
|
||||||
else:
|
else:
|
||||||
op = ops['!=']
|
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,
|
lambda m: m.state in states and op(m.location_id.usage,
|
||||||
rec.type)):
|
rec.type)):
|
||||||
qty += product_obj._compute_quantity(
|
qty += product_obj._compute_quantity(
|
||||||
|
|||||||
Reference in New Issue
Block a user