summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-10-15 11:08:13 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-10-15 11:08:13 +0700
commit670ce7ebbcb6b075d6fa3d1e6ae8dcaacd76721e (patch)
treee1ef1b09fc2239d339e33c636b52719f6c1c1094
parenta831d928c740497c777b966020aa2f198bf0066a (diff)
Update sale_order.py
-rwxr-xr-xindoteknik_custom/models/sale_order.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/indoteknik_custom/models/sale_order.py b/indoteknik_custom/models/sale_order.py
index a366881d..4c556a01 100755
--- a/indoteknik_custom/models/sale_order.py
+++ b/indoteknik_custom/models/sale_order.py
@@ -122,10 +122,10 @@ class SaleOrder(models.Model):
# TODO stephan prevent cancel if have invoice, do, and po
if self.have_outstanding_invoice:
raise UserError("Invoice harus di Cancel dahulu")
- elif self.have_outstanding_picking:
- raise UserError("DO harus di Cancel dahulu")
- elif self.have_outstanding_po:
- raise UserError("PO harus di Cancel dahulu")
+ # elif self.have_outstanding_picking:
+ # raise UserError("DO harus di Cancel dahulu")
+ # elif self.have_outstanding_po:
+ # raise UserError("PO harus di Cancel dahulu")
self.approval_status = False
return super(SaleOrder, self).action_cancel()