diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2023-06-14 10:16:20 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2023-06-14 10:16:20 +0700 |
| commit | 9f0f7d02b357b3bacc1d5d28855a23f3a544d543 (patch) | |
| tree | 9d87ef957697547760b0868a0a36e5b47e85b83a | |
| parent | 1be9baef93f5fd8b0f75012ac2f890666ded7f0f (diff) | |
remove requisition validation
| -rw-r--r-- | indoteknik_custom/models/requisition.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/indoteknik_custom/models/requisition.py b/indoteknik_custom/models/requisition.py index 01d5ef55..5bb3272e 100644 --- a/indoteknik_custom/models/requisition.py +++ b/indoteknik_custom/models/requisition.py @@ -34,9 +34,9 @@ class Requisition(models.Model): if self.is_po: raise UserError('Sudah jadi PO, tidak bisa di create ulang PO nya') - old_requisition = self.env['requisition'].search([('sale_order_id', '=', self.sale_order_id.id)], limit=1) - if old_requisition: - raise UserError('Sudah pernah jadi Requisition') + # old_requisition = self.env['requisition'].search([('sale_order_id', '=', self.sale_order_id.id)], limit=1) + # if old_requisition: + # raise UserError('Sudah pernah jadi Requisition') count = 0 for order_line in self.sale_order_id.order_line: |
