From 19c7a29333bd2c196a4aec2b173293da4d25e3ab Mon Sep 17 00:00:00 2001 From: Miqdad Date: Sat, 21 Jun 2025 11:38:17 +0700 Subject: fix product not showing in detailed operations --- indoteknik_custom/models/tukar_guling.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/indoteknik_custom/models/tukar_guling.py b/indoteknik_custom/models/tukar_guling.py index 1f5e786f..740bb7d7 100644 --- a/indoteknik_custom/models/tukar_guling.py +++ b/indoteknik_custom/models/tukar_guling.py @@ -366,10 +366,11 @@ class TukarGuling(models.Model): # Create return lines return_lines = [] for move in picking.move_lines: - if move.quantity_done > 0: + qty = move.quantity_done or move.product_uom_qty + if qty > 0: return_lines.append((0, 0, { 'product_id': move.product_id.id, - 'quantity': move.quantity_done, + 'quantity': qty, 'move_id': move.id, })) if not return_lines: -- cgit v1.2.3