diff options
| author | Miqdad <ahmadmiqdad27@gmail.com> | 2025-08-07 13:26:53 +0700 |
|---|---|---|
| committer | Miqdad <ahmadmiqdad27@gmail.com> | 2025-08-07 13:26:53 +0700 |
| commit | b223b752b43eb0aa8fd685d895d5649996473baf (patch) | |
| tree | 79a15d245d7889015089660c5a8e570723683551 | |
| parent | ecb8be24f66447fa2ab528c370a4b2eedbf7bd7e (diff) | |
<miqdad> Fix role permission
| -rw-r--r-- | indoteknik_custom/models/tukar_guling_po.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indoteknik_custom/models/tukar_guling_po.py b/indoteknik_custom/models/tukar_guling_po.py index 5d444472..cbbfb348 100644 --- a/indoteknik_custom/models/tukar_guling_po.py +++ b/indoteknik_custom/models/tukar_guling_po.py @@ -430,8 +430,8 @@ class TukarGulingPO(models.Model): # Cek hak akses berdasarkan state for rec in self: if rec.state == 'approval_purchase': - if not rec.env.user.has_group('indoteknik_custom.group_role_sales'): - raise UserError("Hanya Sales yang boleh approve tahap ini.") + if not rec.env.user.has_group('indoteknik_custom.group_role_purchasing'): + raise UserError("Hanya Purchasing yang boleh approve tahap ini.") rec.state = 'approval_finance' rec.date_purchase = now |
