diff options
| -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' |
