summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIndoteknik . <it@fixcomart.co.id>2025-05-13 10:10:34 +0700
committerIndoteknik . <it@fixcomart.co.id>2025-05-13 10:10:34 +0700
commit360c47384d876d17725be8ff3ca6b83a9078615b (patch)
tree0475d79f8726dff0dec711b0c11326770154624e
parentad3eb842d881ad89b0239075695dc2ccf424031f (diff)
(andri) revisi current date pada log note purchase pricelist
-rwxr-xr-xindoteknik_custom/models/purchase_order.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/indoteknik_custom/models/purchase_order.py b/indoteknik_custom/models/purchase_order.py
index a3e2c388..c5ba5792 100755
--- a/indoteknik_custom/models/purchase_order.py
+++ b/indoteknik_custom/models/purchase_order.py
@@ -562,7 +562,9 @@ class PurchaseOrder(models.Model):
i = 0
for line in self.order_line:
i += 1
- current_time = datetime.utcnow()
+
+ utc_time = fields.Datetime.now()
+ current_time = utc_time.astimezone(timezone('Asia/Jakarta')).strftime('%Y-%m-%d %H:%M:%S')
# print(i, len(self.order_line))
price_unit = line.price_unit
@@ -635,7 +637,6 @@ class PurchaseOrder(models.Model):
{"".join(changes)}
<li><b>System Update</b>: {current_time}</li>
</ul>
- <b>Updated By:</b> {self.env.user.name}
"""
purchase_pricelist.message_post(body=message, subtype_id=self.env.ref("mail.mt_note").id)