From 670ce7ebbcb6b075d6fa3d1e6ae8dcaacd76721e Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Sat, 15 Oct 2022 11:08:13 +0700 Subject: Update sale_order.py --- indoteknik_custom/models/sale_order.py | 8 ++++---- 1 file 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() -- cgit v1.2.3