diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-10-15 11:08:13 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-10-15 11:08:13 +0700 |
| commit | 670ce7ebbcb6b075d6fa3d1e6ae8dcaacd76721e (patch) | |
| tree | e1ef1b09fc2239d339e33c636b52719f6c1c1094 | |
| parent | a831d928c740497c777b966020aa2f198bf0066a (diff) | |
Update sale_order.py
| -rwxr-xr-x | indoteknik_custom/models/sale_order.py | 8 |
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() |
