summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiqdad <ahmadmiqdad27@gmail.com>2025-09-25 16:06:22 +0700
committerMiqdad <ahmadmiqdad27@gmail.com>2025-09-25 16:06:22 +0700
commit1299851d0d6280d92ccc4123a82ea083a92bc7ec (patch)
treeda20daa19bf061f13903824ac574b6a95369a2b3
parent49368fcb139eac9de0f1787fdd1477570ed9dbda (diff)
<Miqdad> global pj seen
-rw-r--r--indoteknik_custom/models/purchasing_job.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/indoteknik_custom/models/purchasing_job.py b/indoteknik_custom/models/purchasing_job.py
index d830bf60..3151f0f6 100644
--- a/indoteknik_custom/models/purchasing_job.py
+++ b/indoteknik_custom/models/purchasing_job.py
@@ -39,15 +39,13 @@ class PurchasingJob(models.Model):
], limit=1)
if seen:
- # update snapshot & tanggal + (opsional) siapa yg terakhir lihat
seen.write({
'so_snapshot': self.so_number,
'seen_date': fields.Datetime.now(),
- 'user_id': self.env.user.id, # kalau user_id tetap dipakai sbg last_seen_by
- })
+ 'user_id': self.env.user.id, })
else:
Seen.create({
- 'user_id': self.env.user.id, # atau False kalau mau kosongkan
+ 'user_id': self.env.user.id,
'product_id': self.product_id.id,
'so_snapshot': self.so_number,
})