summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/stock_picking.py
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2025-05-20 14:38:49 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2025-05-20 14:38:49 +0700
commit9c59172b0e5b3829dbd7ad156ed4a98a87d75aed (patch)
tree7d09fd1bf0d4431cb1be5e8c9c513951c40e68bd /indoteknik_custom/models/stock_picking.py
parent89f0377dd6e8143092d47ea4e3cdeff42a3b49e8 (diff)
parent209cfed90c1306a31a32b05eb1b3365e5a9b04e8 (diff)
Merge branch 'odoo-backup' of bitbucket.org:altafixco/indoteknik-addons into odoo-backup
# Conflicts: # indoteknik_custom/models/stock_picking.py
Diffstat (limited to 'indoteknik_custom/models/stock_picking.py')
-rw-r--r--indoteknik_custom/models/stock_picking.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/indoteknik_custom/models/stock_picking.py b/indoteknik_custom/models/stock_picking.py
index 02da5b61..0071bb1a 100644
--- a/indoteknik_custom/models/stock_picking.py
+++ b/indoteknik_custom/models/stock_picking.py
@@ -1012,15 +1012,15 @@ 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:
- # 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
+ if self.sale_id.hold_outgoing and self.location_id.id == 57 and self.location_dest_id.id == 60:
+ print(1)
+ else:
+ 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
# self.check_state_reserve()
- return res
-
+ return res
def ask_approval(self):
if self.env.user.is_accounting: