summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIndoteknik . <it@fixcomart.co.id>2025-07-05 16:47:26 +0700
committerIndoteknik . <it@fixcomart.co.id>2025-07-05 16:47:26 +0700
commit8837ae450af891898efd790e908d87664d2dd910 (patch)
tree7d2bc066e51e13c47cf3773c9a268471448172ba
parent6ff554e2dd9efb329b4d828881967413f8c641fd (diff)
(andri) fix user chatter biteship
-rw-r--r--indoteknik_custom/models/stock_picking.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/indoteknik_custom/models/stock_picking.py b/indoteknik_custom/models/stock_picking.py
index 33d21c8c..69718c7e 100644
--- a/indoteknik_custom/models/stock_picking.py
+++ b/indoteknik_custom/models/stock_picking.py
@@ -1916,8 +1916,12 @@ class StockPicking(models.Model):
# Hindari log duplikat
if not self._has_existing_log(log_line):
- # self.with_user(15172).message_post(body=log_line) # Biteship user
- self.with_user(15710).message_post(body=log_line) # Biteship user live
+ biteship_user = self.env['res.users'].sudo().browse(15710) # ID live
+ # biteship_user = self.env['res.users'].sudo().browse(15710) # ID user (cek di db)
+ self.sudo().message_post(
+ body=log_line,
+ author_id=biteship_user.partner_id.id
+ )
# Update field-field terkait
if updated_fields: