diff options
| author | Miqdad <ahmadmiqdad27@gmail.com> | 2025-10-28 11:34:58 +0700 |
|---|---|---|
| committer | Miqdad <ahmadmiqdad27@gmail.com> | 2025-10-28 11:34:58 +0700 |
| commit | be6ad2b51e04a1ce6e8160804d0556ab4ae807ab (patch) | |
| tree | 3231a161943384183a4bcd5e5b40c50838c915c0 | |
| parent | cf4e1d832aff5dc31dd2fcdcc68afb2e22e97e09 (diff) | |
<Miqdad> remove validation pernah di retur ccm
| -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 f5b0c745..99a74505 100644 --- a/indoteknik_custom/models/tukar_guling.py +++ b/indoteknik_custom/models/tukar_guling.py @@ -498,8 +498,8 @@ class TukarGuling(models.Model): ('state', '!=', 'cancel'), ], limit=1) - if existing_tukar_guling: - raise UserError("BU ini sudah pernah diretur oleh dokumen %s." % existing_tukar_guling.name) + # if existing_tukar_guling: + # raise UserError("BU ini sudah pernah diretur oleh dokumen %s." % existing_tukar_guling.name) picking = self.operations if picking.picking_type_id.id == 30 and self.return_type == 'tukar_guling': raise UserError("❌ BU/PICK tidak boleh di retur tukar guling") |
