summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2025-05-15 11:39:09 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2025-05-15 11:39:09 +0700
commit562f34bf5eb4b216ddf845813e405704f3842789 (patch)
tree4134f236b1e3491dc893f68f38ee6f7574957260
parentc40dc2dafb93759c9fdcda8581eb0c402d304886 (diff)
disable reserve
-rw-r--r--indoteknik_custom/models/stock_picking.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/indoteknik_custom/models/stock_picking.py b/indoteknik_custom/models/stock_picking.py
index ac812a32..1c4a6cbc 100644
--- a/indoteknik_custom/models/stock_picking.py
+++ b/indoteknik_custom/models/stock_picking.py
@@ -1012,6 +1012,8 @@ class StockPicking(models.Model):
self.sale_id.date_doc_kirim = self.date_doc_kirim
def action_assign(self):
+ if self.sale_id.hold_outgoing == True and self.location_id == 57 and self.location_dest_id == 60:
+ raise UserError("SO on hold")
res = super(StockPicking, self).action_assign()
current_time = datetime.datetime.utcnow()
self.real_shipping_id = self.sale_id.real_shipping_id