From b323c50d0ff8d4b80c4c66f20b58411d35476c93 Mon Sep 17 00:00:00 2001 From: Florian da Costa Date: Tue, 3 May 2022 10:46:14 +0200 Subject: [PATCH] [FIX] count produced products going to customer as out pickings --- rma/models/rma_order_line.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rma/models/rma_order_line.py b/rma/models/rma_order_line.py index 618ef54f..a1bf2aa5 100644 --- a/rma/models/rma_order_line.py +++ b/rma/models/rma_order_line.py @@ -76,7 +76,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