summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xindoteknik_custom/models/sale_order.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/indoteknik_custom/models/sale_order.py b/indoteknik_custom/models/sale_order.py
index c99067df..7b60863e 100755
--- a/indoteknik_custom/models/sale_order.py
+++ b/indoteknik_custom/models/sale_order.py
@@ -2717,10 +2717,10 @@ class SaleOrder(models.Model):
return True
if user.id in (3401, 20, 3988, 17340): # admin (fida, nabila, ninda)
- return True
+ raise UserError("Yahaha gabisa confirm so, minta ke sales nya ajah")
if self.env.context.get("ask_approval") and user.id in (3401, 20, 3988):
- return True
+ raise UserError("Yahaha gabisa confirm so, minta ke sales nya ajah")
salesperson_id = self.user_id.id
approver_id = user.id