summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/purchase_order.py
diff options
context:
space:
mode:
authorIndoteknik . <it@fixcomart.co.id>2025-07-23 17:21:46 +0700
committerIndoteknik . <it@fixcomart.co.id>2025-07-23 17:21:46 +0700
commit66d86b6f5b35274b66fe57bcee5864c64f564b97 (patch)
tree8cb90e26ba8efc82553efebd2098319f57dd2283 /indoteknik_custom/models/purchase_order.py
parentd02c3d5d0522e6ec5a43d1380c078f0dd5fd1275 (diff)
parenta5da6a49dda2d756f907f072a00fb50672893682 (diff)
(andri) fix conflict
Diffstat (limited to 'indoteknik_custom/models/purchase_order.py')
-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 f98a37be..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:
+ 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