summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2025-06-13 03:33:36 +0000
committerIT Fixcomart <it@fixcomart.co.id>2025-06-13 03:33:36 +0000
commitcca8698ed6617ff8ef79df0790861a08377c526b (patch)
tree1fa62e9758449110942ec1ce20af226814ef06c4
parentbb765c2cddb0f630c8cf2a69793aa95f7f8f6f08 (diff)
parent98c757b960591eeb2ac6da272bfc8822663918a4 (diff)
Merged in approval-commission (pull request #332)
Approval commission
-rw-r--r--indoteknik_custom/models/commision.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/indoteknik_custom/models/commision.py b/indoteknik_custom/models/commision.py
index eeaa8efc..842e64bf 100644
--- a/indoteknik_custom/models/commision.py
+++ b/indoteknik_custom/models/commision.py
@@ -354,12 +354,12 @@ class CustomerCommision(models.Model):
if not self.status or self.status == 'draft':
self.status = 'pengajuan1'
- elif self.status == 'pengajuan1' and self.env.user.is_sales_manager:
+ elif self.status == 'pengajuan1' and self.env.user.id == 19:
self.status = 'pengajuan2'
self.approved_by = (self.approved_by + ', ' if self.approved_by else '') + self.env.user.name
self.date_approved_sales = now_naive
self.position_sales = 'Sales Manager'
- elif self.status == 'pengajuan2' and self.env.user.id == 19:
+ elif self.status == 'pengajuan2' and self.env.user.id == 216:
self.status = 'pengajuan3'
self.approved_by = (self.approved_by + ', ' if self.approved_by else '') + self.env.user.name
self.date_approved_marketing = now_naive