summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiqdad <ahmadmiqdad27@gmail.com>2025-11-10 10:20:58 +0700
committerMiqdad <ahmadmiqdad27@gmail.com>2025-11-10 10:20:58 +0700
commit1e3ab6c5d7b34e302d07bdb303982c87aaf59123 (patch)
tree46f77b5c87a1a6fd0d39003f8870d429f5996115
parent7efc5a1a9b0f8a8479a9fed03577a76bdba8af22 (diff)
<Miqdad> validasi check product bu input
-rw-r--r--indoteknik_custom/models/stock_picking.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/indoteknik_custom/models/stock_picking.py b/indoteknik_custom/models/stock_picking.py
index 0178ac33..eb9d8eda 100644
--- a/indoteknik_custom/models/stock_picking.py
+++ b/indoteknik_custom/models/stock_picking.py
@@ -1459,6 +1459,9 @@ class StockPicking(models.Model):
if len(self.check_product_lines) == 0 and 'BU/PICK/' in self.name:
raise UserError(_("Tidak ada Check Product! Harap periksa kembali."))
+ if len(self.check_product_lines) == 0 and 'BU/INPUT/' in self.name:
+ raise UserError(_("Tidak ada Check Product! Harap periksa kembali."))
+
if self.total_koli > self.total_so_koli:
raise UserError(_("Total Koli (%s) dan Total SO Koli (%s) tidak sama! Harap periksa kembali.")
% (self.total_koli, self.t1otal_so_koli))