summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/sale_order.py
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2023-06-19 17:08:47 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2023-06-19 17:08:47 +0700
commite595c9ce8de2eb8c778b998cef58b2d85c29a6a7 (patch)
tree799c57e3e759ad4fe28b188bfbe58870f5159b64 /indoteknik_custom/models/sale_order.py
parente59d33ea416afbe5d2e531f524be37c1eeef6015 (diff)
parent7ad6f514da84253dfed42efc18c3c9343d7cc052 (diff)
Merge branch 'nathan-dev' of bitbucket.org:altafixco/indoteknik-addons into nathan-dev
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 e2693688..e99876c2 100755
--- a/indoteknik_custom/models/sale_order.py
+++ b/indoteknik_custom/models/sale_order.py
@@ -349,8 +349,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()