summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2025-07-21 14:50:24 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2025-07-21 14:50:24 +0700
commit946e4b76e8280daad6d4849e9ced33a54d770a84 (patch)
treefd0c8147d0615c790311658629a3e1e822239001
parent9a1c1f7907a1d504fce1f7ef885fa975efcb1ec5 (diff)
push
-rwxr-xr-xindoteknik_custom/models/purchase_order.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/purchase_order.py b/indoteknik_custom/models/purchase_order.py
index 25f45f6f..5b9e1acb 100755
--- a/indoteknik_custom/models/purchase_order.py
+++ b/indoteknik_custom/models/purchase_order.py
@@ -970,7 +970,7 @@ class PurchaseOrder(models.Model):
# )
if not self.from_apo:
- if not self.matches_so and not self.env.user.is_purchasing_manager and not self.env.user.is_leader and not self.manufacturing_id:
+ if (not self.matches_so or not self.sale_order_id) and not self.env.user.is_purchasing_manager and not self.env.user.is_leader and not self.manufacturing_id:
raise UserError("Tidak ada link dengan SO, harus di confirm oleh Purchasing Manager")
send_email = False