summaryrefslogtreecommitdiff
path: root/indoteknik_custom
diff options
context:
space:
mode:
authorMqdd <ahmadmiqdad27@gmail.com>2025-12-22 11:38:26 +0700
committerMqdd <ahmadmiqdad27@gmail.com>2025-12-22 11:38:26 +0700
commitcf0fdfe82fd59f58b2bd0e8d9006b8a16f8d30ca (patch)
treeb2c72168566728f6450fd47e54b5005962f9cd7c /indoteknik_custom
parent9e2cfb1999a9b9051aabde64120577cb6058d5f9 (diff)
<Miqdad> rpo create po without SO. change flow
Diffstat (limited to 'indoteknik_custom')
-rw-r--r--indoteknik_custom/models/requisition.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/requisition.py b/indoteknik_custom/models/requisition.py
index 748642eb..f292b760 100644
--- a/indoteknik_custom/models/requisition.py
+++ b/indoteknik_custom/models/requisition.py
@@ -102,7 +102,7 @@ class Requisition(models.Model):
def create_po_from_requisition(self):
self.check_product_line_to_so()
- if not self.sales_approve and not self.merchandise_approve:
+ if not self.sales_approve or not self.merchandise_approve:
raise UserError('Harus Di Approve oleh Darren atau Rafly')
if not self.requisition_lines:
raise UserError('Tidak ada Lines, belum bisa create PO')