summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiqdad <ahmadmiqdad27@gmail.com>2025-05-17 13:26:59 +0700
committerMiqdad <ahmadmiqdad27@gmail.com>2025-05-17 13:26:59 +0700
commit2c2a1ac7fe9530390b4bbc473d629ddfb2b97d2b (patch)
treea3a2481f532d42c66b72f26d13a165261d5115a1
parenta9b205f38697c53410a2859aff7b2d79acc9dcd0 (diff)
<miqdad> remove permission for sales manager to edit
-rwxr-xr-xindoteknik_custom/models/sale_order.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/indoteknik_custom/models/sale_order.py b/indoteknik_custom/models/sale_order.py
index 71bbd648..57a5000e 100755
--- a/indoteknik_custom/models/sale_order.py
+++ b/indoteknik_custom/models/sale_order.py
@@ -1160,10 +1160,7 @@ class SaleOrder(models.Model):
for record in self:
if record.payment_term_id not in ['cancel',
'draft'] and record.approval_status == 'approved':
- if self.env.user.has_group(
- 'sales_team.group_sale_salesman') and not self.env.user.has_group(
- 'sales_team.group_sale_manager'):
- raise UserError('Tidak bisa mengganti payment term karena sudah approved')
+ raise UserError('Tidak bisa mengganti payment term karena sudah approved')
helper_ids = self._get_helper_ids()
if str(self.env.user.id) in helper_ids: