diff options
| author | Miqdad <ahmadmiqdad27@gmail.com> | 2025-06-21 11:38:17 +0700 |
|---|---|---|
| committer | Miqdad <ahmadmiqdad27@gmail.com> | 2025-06-21 11:38:17 +0700 |
| commit | 19c7a29333bd2c196a4aec2b173293da4d25e3ab (patch) | |
| tree | e2c462e7b8fe4a8a38080393ec1e5fe00a1912ec | |
| parent | c1fa178a6afb9ef4a914dc617d2fb69da50af673 (diff) | |
<miqdad> fix product not showing in detailed operations
| -rw-r--r-- | indoteknik_custom/models/tukar_guling.py | 5 |
1 files 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: |
