[FIX] count produced products going to customer as out pickings

This commit is contained in:
Florian da Costa
2022-05-03 10:46:14 +02:00
committed by Aaron ForgeFlow
parent c371468760
commit 01688890ab

View File

@@ -88,7 +88,7 @@ class RmaOrderLine(models.Model):
for move in self.move_ids:
first_usage = move._get_first_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
elif last_usage == "customer" and first_usage == "supplier":
pickings |= move.picking_id