diff options
| author | Miqdad <ahmadmiqdad27@gmail.com> | 2025-11-01 13:16:19 +0700 |
|---|---|---|
| committer | Miqdad <ahmadmiqdad27@gmail.com> | 2025-11-01 13:16:19 +0700 |
| commit | 3c552beb2a8bbe51fecff96d3221a4ee1dedbe8f (patch) | |
| tree | c27ab6f6be4262b9ada48277faa3db6c49a33492 | |
| parent | 7031fd2233cfb32feef5e1911e872f523464c8ba (diff) | |
<Miqdad> remove write validation
| -rw-r--r-- | indoteknik_custom/models/tukar_guling_po.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indoteknik_custom/models/tukar_guling_po.py b/indoteknik_custom/models/tukar_guling_po.py index 2a5ca3dd..739898a1 100644 --- a/indoteknik_custom/models/tukar_guling_po.py +++ b/indoteknik_custom/models/tukar_guling_po.py @@ -366,8 +366,8 @@ class TukarGulingPO(models.Model): # if bu_put: # raise UserError("❌ Tidak bisa retur BU/INPUT karena BU/PUT sudah Done!") - if self.operations.picking_type_id.id == 28 and tipe == 'tukar_guling': - raise UserError("❌ BU/INPUT tidak boleh di retur tukar guling") + # if self.operations.picking_type_id.id == 28 and tipe == 'tukar_guling': + # raise UserError("❌ BU/INPUT tidak boleh di retur tukar guling") # if self.operations.picking_type_id.id != 28: # if self._is_already_returned(self.operations): |
