From 3a76bd301734621831f291228deaa962c144be5e Mon Sep 17 00:00:00 2001 From: Miqdad Date: Tue, 17 Jun 2025 08:38:21 +0700 Subject: fix group role --- indoteknik_custom/models/tukar_guling.py | 6 +++--- 1 file 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' -- cgit v1.2.3