diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2025-06-05 09:53:57 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2025-06-05 09:55:08 +0700 |
| commit | 2b4d72b6157a438f0a77be8aaae6875c2b415392 (patch) | |
| tree | 5e85f30cac421e74c470fcc608192040b7010094 /indoteknik_custom/models/requisition.py | |
| parent | 5003a089ba5816e6e01dcd60ee4532e98eecdd18 (diff) | |
change acccess approve rpo
Diffstat (limited to 'indoteknik_custom/models/requisition.py')
| -rw-r--r-- | indoteknik_custom/models/requisition.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/requisition.py b/indoteknik_custom/models/requisition.py index 25133e72..6d10f511 100644 --- a/indoteknik_custom/models/requisition.py +++ b/indoteknik_custom/models/requisition.py @@ -87,7 +87,7 @@ class Requisition(models.Model): if self.env.user.id == 19 or self.env.user.id == 28: self.sales_approve = True elif self.env.user.id == 21 or self.env.user.id == 28: - if not self.sales_approve: + if not self.sales_approve and not self.env.user.id == 21: raise UserError('Darren Belum Approve') self.merchandise_approve = True |
