summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--indoteknik_custom/models/requisition.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/indoteknik_custom/models/requisition.py b/indoteknik_custom/models/requisition.py
index 832e4c72..c0489adc 100644
--- a/indoteknik_custom/models/requisition.py
+++ b/indoteknik_custom/models/requisition.py
@@ -90,7 +90,7 @@ class Requisition(models.Model):
def button_approve(self):
state = ['done', 'sale']
- self.check_product_line_to_so()
+ # self.check_product_line_to_so()
if self.sale_order_id.state in state:
raise UserError('SO sudah Confirm, akan berakibat double Purchase melalui PJ')
if self.env.user.id not in [21, 19, 28]:
@@ -101,7 +101,7 @@ class Requisition(models.Model):
self.merchandise_approve = True
def create_po_from_requisition(self):
- self.check_product_line_to_so()
+ # self.check_product_line_to_so()
if not (self.sales_approve or self.merchandise_approve):
raise UserError('Tidak bisa create PO karena belukm diapprove oleh Darren atau Rafly')
if not self.requisition_lines: