From 6c740b7fcc4137fa59cee04cfbe0003529b31cd4 Mon Sep 17 00:00:00 2001 From: Mqdd Date: Wed, 10 Dec 2025 09:40:00 +0700 Subject: hilangin validasi pernah di retur vcm --- indoteknik_custom/models/tukar_guling_po.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/indoteknik_custom/models/tukar_guling_po.py b/indoteknik_custom/models/tukar_guling_po.py index 739898a1..ae58d509 100644 --- a/indoteknik_custom/models/tukar_guling_po.py +++ b/indoteknik_custom/models/tukar_guling_po.py @@ -441,8 +441,8 @@ class TukarGulingPO(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 pick_id = self.operations.picking_type_id.id @@ -787,4 +787,4 @@ class StockPicking(models.Model): ) picking.tukar_guling_po_id.message_post(body=message) - return res \ No newline at end of file + return res -- cgit v1.2.3