diff options
| author | Miqdad <ahmadmiqdad27@gmail.com> | 2025-07-14 17:04:54 +0700 |
|---|---|---|
| committer | Miqdad <ahmadmiqdad27@gmail.com> | 2025-07-14 17:04:54 +0700 |
| commit | 02cb11bce98b50e66760bc1b755367c0f7ba63f7 (patch) | |
| tree | c7358aabb75bffff2cc82d9d2a24642be5624646 | |
| parent | f6229d1426fc0823e1b29721f7fbaaec285351ef (diff) | |
<miqdad> fix bugs
| -rw-r--r-- | indoteknik_custom/models/tukar_guling.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/indoteknik_custom/models/tukar_guling.py b/indoteknik_custom/models/tukar_guling.py index 24dbf3d8..8d14012a 100644 --- a/indoteknik_custom/models/tukar_guling.py +++ b/indoteknik_custom/models/tukar_guling.py @@ -500,11 +500,7 @@ class TukarGuling(models.Model): if srt: created_returns.append(srt) - picks = self.env['stock.picking'].search([ - ('origin', '=', record.origin), - ('state', '=', 'done'), - ('picking_type_id', '=', 30) - ]) + picks = record.operations.konfirm_koli_lines.pick_id for picking in picks: ort = _create_return_from_picking(picking) if ort: |
