summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2025-06-13 10:22:14 +0700
committerit-fixcomart <it@fixcomart.co.id>2025-06-13 10:22:14 +0700
commit5c40bc011dd1ea27c1407709914ee9db039fa6fe (patch)
tree7ef55d7356fdaff7dea3d87ce4bd88c347a9ea26
parent741ccc28589388c1214f5da44b9a7d56ef32680c (diff)
<hafid> change approval customer commission
-rw-r--r--indoteknik_custom/models/commision.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/indoteknik_custom/models/commision.py b/indoteknik_custom/models/commision.py
index eeaa8efc..dc7f5f46 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:
+ self.position_sales = 'Purchasing Manager'
+ 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