summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFIN-IT_AndriFP <it@fixcomart.co.id>2025-10-16 12:01:20 +0700
committerFIN-IT_AndriFP <it@fixcomart.co.id>2025-10-16 12:01:20 +0700
commite210b6fa5ec6603920f550e5f8cc64e32e832e44 (patch)
treed9d9fc1082ecaea8741b15216f011a2291ccfc6c
parent8ff0270ee40b34d8eb85cd8d5e9572211a0e36a9 (diff)
(andri) fix
-rwxr-xr-xindoteknik_custom/models/purchase_order.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/purchase_order.py b/indoteknik_custom/models/purchase_order.py
index f8718a0d..7badff95 100755
--- a/indoteknik_custom/models/purchase_order.py
+++ b/indoteknik_custom/models/purchase_order.py
@@ -1069,7 +1069,7 @@ class PurchaseOrder(models.Model):
) % order.name)
def button_confirm(self):
- if self.env.user.id != 7: # Pimpinan
+ if self.env.user.id != 7 and not self.env.user.is_leader: # Pimpinan
if '/PJ/' in self.name:
low_margin_lines = self.order_sales_match_line.filtered(
lambda match: match.so_header_margin <= 15.0