mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[FIX] count produced products going to customer as out pickings
This commit is contained in:
committed by
Aaron ForgeFlow
parent
ff5dc092c9
commit
f3958f33fc
@@ -76,7 +76,7 @@ class RmaOrderLine(models.Model):
|
|||||||
for move in self.move_ids:
|
for move in self.move_ids:
|
||||||
first_usage = move._get_first_usage()
|
first_usage = move._get_first_usage()
|
||||||
last_usage = move._get_last_usage()
|
last_usage = move._get_last_usage()
|
||||||
if first_usage == "internal" and last_usage != "internal":
|
if first_usage in ("internal", "production") and last_usage != "internal":
|
||||||
pickings |= move.picking_id
|
pickings |= move.picking_id
|
||||||
elif last_usage == "customer" and first_usage == "supplier":
|
elif last_usage == "customer" and first_usage == "supplier":
|
||||||
pickings |= move.picking_id
|
pickings |= move.picking_id
|
||||||
|
|||||||
Reference in New Issue
Block a user