diff options
| author | Miqdad <ahmadmiqdad27@gmail.com> | 2025-06-25 08:04:39 +0700 |
|---|---|---|
| committer | Miqdad <ahmadmiqdad27@gmail.com> | 2025-06-25 08:04:39 +0700 |
| commit | f8765bb7a9b6095c3b79d71f65ce8ae4a041da6d (patch) | |
| tree | bea983dee7289081e0702af8268ea80c448083c4 | |
| parent | 8fc5488d18ac3005df9e8e259b2fbc0b67664841 (diff) | |
<miqdad> don
| -rw-r--r-- | indoteknik_custom/models/tukar_guling.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indoteknik_custom/models/tukar_guling.py b/indoteknik_custom/models/tukar_guling.py index 0c6e5eca..e00c21f8 100644 --- a/indoteknik_custom/models/tukar_guling.py +++ b/indoteknik_custom/models/tukar_guling.py @@ -309,8 +309,8 @@ class TukarGuling(models.Model): "Tidak ditemukan BU/PICK atau BU/OUT dari SO: %s" % record.origin) # filter based on stockin.picking picking type - bu_pick_to_return = self.env['stock.picking'] or related_pickings.filtered(lambda ktl: ktl.picking_type_id.id == 30) # BU/PICK - bu_out_to_return = record.operations or related_pickings.filtered(lambda ktl: ktl.picking_type_id.id == 29) # BU/OUT + bu_pick_to_return = record.operations.konfirm_koli_lines.pick_id + bu_out_to_return = record.operations if not bu_pick_to_return and not bu_out_to_return: raise UserError("Tidak ada BU/PICK atau BU/OUT yang selesai untuk diretur.") |
