summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/approval_payment_term.py
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2025-07-15 11:13:04 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2025-07-15 11:13:04 +0700
commit4dd6ef58e2c60df7cb25b65ae6ad23d3bee2ebc1 (patch)
tree04341b322ad0d9e09b83eae05a59ac52b99ed906 /indoteknik_custom/models/approval_payment_term.py
parent7f4510f2459e16b7b3f1828f736ec84bc7ea97dc (diff)
add so number on purchasing job
Diffstat (limited to 'indoteknik_custom/models/approval_payment_term.py')
-rw-r--r--indoteknik_custom/models/approval_payment_term.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/indoteknik_custom/models/approval_payment_term.py b/indoteknik_custom/models/approval_payment_term.py
index 025f9ed4..6c857b45 100644
--- a/indoteknik_custom/models/approval_payment_term.py
+++ b/indoteknik_custom/models/approval_payment_term.py
@@ -143,17 +143,17 @@ class ApprovalPaymentTerm(models.Model):
user = self.env.user
is_it = user.has_group('indoteknik_custom.group_role_it')
- if (not user.id ==7 and user.id == 19 and not self.approve_sales_manager) or is_it:
+ if (not user.id ==7 and user.id == 19 and not self.approve_sales_manager) or (is_it and not self.approve_sales_manager):
self.approve_sales_manager = True
self.state = 'waiting_approval_finance'
return
- if (not user.id ==7 and user.id == 688 and not self.approve_finance) or is_it:
+ if (not user.id ==7 and user.id == 688 and not self.approve_finance) or (is_it and not self.approve_finance):
self.approve_finance = True
self.state = 'waiting_approval_leader'
return
- if (user.id == 7 and self.approve_finance) or is_it:
+ if (user.id == 7 and self.approve_finance) or (is_it and not self.approve_leader):
self.approve_leader = True
if not self.approve_finance and not is_it: