summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2025-04-15 11:41:14 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2025-04-15 11:41:14 +0700
commitd04df4f0f78e34dbaf1ce7f8ea1102ac2bdf019c (patch)
tree7c1c3a3f4cd5fc46cd439b40eb8c39046297dc1f
parent3176f8497009169294e25f7f461f1a81c6bd0c59 (diff)
push
-rw-r--r--indoteknik_custom/models/stock_picking.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/indoteknik_custom/models/stock_picking.py b/indoteknik_custom/models/stock_picking.py
index ae17b5d1..383c75a3 100644
--- a/indoteknik_custom/models/stock_picking.py
+++ b/indoteknik_custom/models/stock_picking.py
@@ -1030,6 +1030,9 @@ class StockPicking(models.Model):
if len(self.check_koli_lines) == 0 and 'BU/PICK/' in self.name:
raise UserError(_("Tidak ada koli! Harap periksa kembali."))
+ if not self.linked_manual_bu_out and 'BU/PICK/' in self.name:
+ raise UserError(_("Isi BU Out terlebih dahulu!"))
+
if len(self.check_product_lines) == 0 and 'BU/PICK/' in self.name:
raise UserError(_("Tidak ada Check Product! Harap periksa kembali."))
@@ -1090,7 +1093,6 @@ class StockPicking(models.Model):
res = super(StockPicking, self).button_validate()
self.calculate_line_no()
self.date_done = datetime.datetime.utcnow()
- self.driver_departure_date = datetime.datetime.utcnow()
self.state_reserve = 'done'
self.final_seq = 0
self.set_picking_code_out()