diff options
| author | FIN-IT_AndriFP <it@fixcomart.co.id> | 2025-10-16 12:01:20 +0700 |
|---|---|---|
| committer | FIN-IT_AndriFP <it@fixcomart.co.id> | 2025-10-16 12:01:20 +0700 |
| commit | e210b6fa5ec6603920f550e5f8cc64e32e832e44 (patch) | |
| tree | d9d9fc1082ecaea8741b15216f011a2291ccfc6c | |
| parent | 8ff0270ee40b34d8eb85cd8d5e9572211a0e36a9 (diff) | |
(andri) fix
| -rwxr-xr-x | indoteknik_custom/models/purchase_order.py | 2 |
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 |
