summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/sale_order.py
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2023-06-16 16:11:05 +0700
committerstephanchrst <stephanchrst@gmail.com>2023-06-16 16:11:05 +0700
commit2b55220a09fa15c22fb0a4e405c6495153604f54 (patch)
treef10220540680ca1ad25abb9507c82f09041c75f4 /indoteknik_custom/models/sale_order.py
parentab71c4b64074ec7471954e3c8f652887549950b9 (diff)
parente2ccd5719de9cf03a422e93fbef9a7f035b854a5 (diff)
Merge branch 'release' into nathan-dev
# Conflicts: # indoteknik_custom/models/purchase_order.py
Diffstat (limited to 'indoteknik_custom/models/sale_order.py')
-rwxr-xr-xindoteknik_custom/models/sale_order.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/indoteknik_custom/models/sale_order.py b/indoteknik_custom/models/sale_order.py
index cbc6a60a..52b959db 100755
--- a/indoteknik_custom/models/sale_order.py
+++ b/indoteknik_custom/models/sale_order.py
@@ -336,8 +336,8 @@ class SaleOrder(models.Model):
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_po:
+ # raise UserError("PO harus di Cancel dahulu")
self.approval_status = False
return super(SaleOrder, self).action_cancel()