diff options
| author | Miqdad <ahmadmiqdad27@gmail.com> | 2025-07-18 00:02:17 +0700 |
|---|---|---|
| committer | Miqdad <ahmadmiqdad27@gmail.com> | 2025-07-18 00:02:17 +0700 |
| commit | 08f599f8a96fb445bebc7ab2eaa53f1972caa563 (patch) | |
| tree | a1bacf7e8bf48f73315368a518c967528c706e0c /indoteknik_custom/models/approval_payment_term.py | |
| parent | 2b55913a52b05f3f62786d7ae56070e96878178c (diff) | |
| parent | f3fc6d3d1a4c5ac0b287e3bb7e1163b99393c728 (diff) | |
Merge branch 'odoo-backup' of https://bitbucket.org/altafixco/indoteknik-addons into tukar_guling
merge
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: |
