summaryrefslogtreecommitdiff
path: root/indoteknik_custom
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2024-04-26 04:13:49 +0000
committerIT Fixcomart <it@fixcomart.co.id>2024-04-26 04:13:49 +0000
commit09c3b3a6a706d176f61bf89fc7acb690650b528c (patch)
treef629b737d6541c06f4026731ca1db069291b0689 /indoteknik_custom
parent0fe833914b02e27d1ea7f6ac0cc05e9e4b1961ae (diff)
parentd026ce987698790c8424a1b88d7bfacf1508dad6 (diff)
Merged in feature/request-by-abl (pull request #139)
Update approval by procurement
Diffstat (limited to 'indoteknik_custom')
-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 65177cff..1c85914e 100755
--- a/indoteknik_custom/models/sale_order.py
+++ b/indoteknik_custom/models/sale_order.py
@@ -468,8 +468,8 @@ class SaleOrder(models.Model):
SYSTEM_UID = 25
FROM_WEBSITE = order.create_uid.id == SYSTEM_UID
- if FROM_WEBSITE and main_parent.use_so_approval and order.web_approval != 'cust_procurement':
- raise UserError("This order not yet approved by customer procurement")
+ if FROM_WEBSITE and main_parent.use_so_approval and order.web_approval not in ['cust_procurement', 'cust_director']:
+ raise UserError("This order not yet approved by customer procurement or director")
if order.validate_partner_invoice_due():
return self._create_notification_action('Notification', 'Terdapat invoice yang telah melewati batas waktu, mohon perbarui pada dokumen Due Extension')