mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
Merge pull request #391 from ForgeFlow/13.0-bp-390
[13.0][FIX] rma: in multi step routes, only reserve first step
This commit is contained in:
@@ -206,7 +206,7 @@ class RmaMakePicking(models.TransientModel):
|
|||||||
# Force the reservation of the RMA specific lot for incoming shipments.
|
# Force the reservation of the RMA specific lot for incoming shipments.
|
||||||
# FIXME: still needs fixing, not reserving appropriate serials.
|
# FIXME: still needs fixing, not reserving appropriate serials.
|
||||||
for move in pickings.move_lines.filtered(
|
for move in pickings.move_lines.filtered(
|
||||||
lambda x: x.state not in ("draft", "cancel", "done")
|
lambda x: x.state not in ("draft", "cancel", "done", "waiting")
|
||||||
and x.rma_line_id
|
and x.rma_line_id
|
||||||
and x.product_id.tracking in ("lot", "serial")
|
and x.product_id.tracking in ("lot", "serial")
|
||||||
and x.rma_line_id.lot_id
|
and x.rma_line_id.lot_id
|
||||||
|
|||||||
Reference in New Issue
Block a user