diff options
| author | Miqdad <ahmadmiqdad27@gmail.com> | 2025-06-17 08:38:21 +0700 |
|---|---|---|
| committer | Miqdad <ahmadmiqdad27@gmail.com> | 2025-06-17 08:38:21 +0700 |
| commit | 3a76bd301734621831f291228deaa962c144be5e (patch) | |
| tree | 3cdee4cf7557c764b180c63684af26d72c175680 | |
| parent | a2a003a86379fab81b2df36cff5022e1d22a589d (diff) | |
<miqdad> fix group role
| -rw-r--r-- | indoteknik_custom/models/tukar_guling.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/indoteknik_custom/models/tukar_guling.py b/indoteknik_custom/models/tukar_guling.py index aeb2c9e7..5e814459 100644 --- a/indoteknik_custom/models/tukar_guling.py +++ b/indoteknik_custom/models/tukar_guling.py @@ -118,17 +118,17 @@ class TukarGuling(models.Model): # Cek hak akses berdasarkan state if self.state == 'approval_sales': - if not self.env.user.has_group('indoteknik_custom.group_sales_manager'): + if not self.env.user.has_group('indoteknik_custom.group_role_sales'): raise UserError("Hanya Sales Manager yang boleh approve tahap ini.") self.state = 'approval_logistic' elif self.state == 'approval_logistic': - if not self.env.user.has_group('indoteknik_custom.group_logistic'): + if not self.env.user.has_group('indoteknik_custom.group_role_logistic'): raise UserError("Hanya Logistic Manager yang boleh approve tahap ini.") self.state = 'approval_finance' elif self.state == 'approval_finance': - if not self.env.user.has_group('indoteknik_custom.group_finance'): + if not self.env.user.has_group('indoteknik_custom.group_role_fat'): raise UserError("Hanya Finance Manager yang boleh approve tahap ini.") self.state = 'done' |
