diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2025-10-29 10:29:20 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2025-10-29 10:29:20 +0700 |
| commit | b35a287e6c431375458d47407f28ccb3978d0194 (patch) | |
| tree | 807da8f22d6aa9e38fb5e6d70d51c3a43b87bdb3 | |
| parent | 0c7c965fe378ecdf878911088bed19d72947a36f (diff) | |
push cr approval so sales admin
| -rwxr-xr-x | indoteknik_custom/models/sale_order.py | 4 |
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 |
