diff options
| author | Indoteknik . <it@fixcomart.co.id> | 2025-07-15 11:52:57 +0700 |
|---|---|---|
| committer | Indoteknik . <it@fixcomart.co.id> | 2025-07-15 11:52:57 +0700 |
| commit | 847579fd0b1a846e89646ad270a920d124abaa5a (patch) | |
| tree | 2fc21c055860fb1caab35eaf3979ad048b1107fb /indoteknik_custom/models/approval_payment_term.py | |
| parent | 0198b0a0683cc7db1241ec9b7184c2cb608ba049 (diff) | |
| parent | 4dd6ef58e2c60df7cb25b65ae6ad23d3bee2ebc1 (diff) | |
Merge branch 'odoo-backup' of https://bitbucket.org/altafixco/indoteknik-addons into odoo-backup
Diffstat (limited to 'indoteknik_custom/models/approval_payment_term.py')
| -rw-r--r-- | indoteknik_custom/models/approval_payment_term.py | 6 |
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: |
