diff options
| author | Mqdd <ahmadmiqdad27@gmail.com> | 2025-12-22 11:38:26 +0700 |
|---|---|---|
| committer | Mqdd <ahmadmiqdad27@gmail.com> | 2025-12-22 11:38:26 +0700 |
| commit | cf0fdfe82fd59f58b2bd0e8d9006b8a16f8d30ca (patch) | |
| tree | b2c72168566728f6450fd47e54b5005962f9cd7c | |
| parent | 9e2cfb1999a9b9051aabde64120577cb6058d5f9 (diff) | |
<Miqdad> rpo create po without SO. change flow
| -rw-r--r-- | indoteknik_custom/models/requisition.py | 2 |
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') |
