summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2025-04-11 14:06:29 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2025-04-11 14:06:29 +0700
commit52b493aaee7c1782c328d2f3af7bee6534342734 (patch)
treebe6651b4a93103b0c8e501ed57716b9221a4962c
parenta24177e4f4f575ea95ebc1d886b830da5c320690 (diff)
fix error
-rw-r--r--indoteknik_custom/models/stock_picking.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/indoteknik_custom/models/stock_picking.py b/indoteknik_custom/models/stock_picking.py
index 1987c03c..932e394b 100644
--- a/indoteknik_custom/models/stock_picking.py
+++ b/indoteknik_custom/models/stock_picking.py
@@ -995,18 +995,18 @@ class StockPicking(models.Model):
if self.location_id.id == 47 and self.env.user.id in users_in_group.mapped('id'):
self.state_approve_md = 'done'
- threshold_datetime = datetime(2025, 4, 11, 13, 26)
+ threshold_datetime = waktu(2025, 4, 11, 13, 26)
if (len(self.konfirm_koli_lines) == 0
and 'BU/OUT/' in self.name
and self.picking_type_code == 'outgoing'
- and (self.create_date or datetime.now()) > threshold_datetime):
+ and (self.create_date or waktu.utcnow()) > threshold_datetime):
raise UserError(_("Tidak ada Mapping koli! Harap periksa kembali."))
if (len(self.scan_koli_lines) == 0
and 'BU/OUT/' in self.name
and self.picking_type_code == 'outgoing'
- and (self.create_date or datetime.now()) > threshold_datetime):
+ and (self.create_date or waktu.utcnow()) > threshold_datetime):
raise UserError(_("Tidak ada scan koli! Harap periksa kembali."))
# if self.driver_departure_date == False and 'BU/OUT/' in self.name and self.picking_type_code == 'outgoing':