summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiqdad <ahmadmiqdad27@gmail.com>2025-11-06 16:32:57 +0700
committerMiqdad <ahmadmiqdad27@gmail.com>2025-11-06 16:32:57 +0700
commit3f905516b4b0b6573ebdf67f18582f20b023f7f6 (patch)
treeb381f98c74a75d55419d7d98be9f9676ea9d0120
parentee9706c1f34c88ca2cfc32dbe7a90c38731166b1 (diff)
<Miqdad> update
-rwxr-xr-xindoteknik_custom/models/sale_order.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/indoteknik_custom/models/sale_order.py b/indoteknik_custom/models/sale_order.py
index 1d07a1ff..31662fb4 100755
--- a/indoteknik_custom/models/sale_order.py
+++ b/indoteknik_custom/models/sale_order.py
@@ -2597,7 +2597,7 @@ class SaleOrder(models.Model):
order.approval_status = 'pengajuan1'
return self._create_approval_notification('Sales Manager')
elif order._requires_approval_team_sales():
- order.approval_status = 'pengajuan1'
+ # order.approval_status = 'pengajuan1'
return self._create_approval_notification('Team Sales')
order.approval_status = 'approved'
@@ -2703,8 +2703,8 @@ class SaleOrder(models.Model):
def _requires_approval_team_sales(self):
return (
- # 18 <= self.total_percent_margin <= 24
- self.total_percent_margin >= 18
+ 18 <= self.total_percent_margin <= 24
+ # self.total_percent_margin >= 18
and self.env.user.id not in [11, 9, 375] # Eko, Ade, Putra
and not self.env.user.is_sales_manager
and not self.env.user.is_leader