summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2025-05-19 15:06:58 +0700
committerstephanchrst <stephanchrst@gmail.com>2025-05-19 15:06:58 +0700
commitabb5b01c3bbaf19feaf1be8f3a3fac6b95a1d6a6 (patch)
treef8520e4d071332b08b90beebd4a0d90e853c3a2a
parentf5d261ee2d263603d5becb32832765863c9dd9e8 (diff)
bf qty delivered minus
-rw-r--r--indoteknik_custom/models/stock_picking.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/indoteknik_custom/models/stock_picking.py b/indoteknik_custom/models/stock_picking.py
index 9b8f6775..128efee6 100644
--- a/indoteknik_custom/models/stock_picking.py
+++ b/indoteknik_custom/models/stock_picking.py
@@ -1012,12 +1012,12 @@ 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.id == 57 and self.location_dest_id.id == 60:
+ if self.sale_id.hold_outgoing and self.location_id.id == 57 and self.location_dest_id.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
- self.date_availability = current_time
+ # current_time = datetime.datetime.utcnow()
+ # self.real_shipping_id = self.sale_id.real_shipping_id
+ # self.date_availability = current_time
# self.check_state_reserve()
return res