summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xindoteknik_custom/models/sale_order.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/indoteknik_custom/models/sale_order.py b/indoteknik_custom/models/sale_order.py
index d4c70fdc..fb6a457d 100755
--- a/indoteknik_custom/models/sale_order.py
+++ b/indoteknik_custom/models/sale_order.py
@@ -477,6 +477,9 @@ class SaleOrder(models.Model):
raise UserError("Invoice harus di Cancel dahulu")
elif self.have_outstanding_picking:
raise UserError("DO harus di Cancel dahulu")
+
+ if not self.web_approval:
+ self.web_approval = 'company'
# elif self.have_outstanding_po:
# raise UserError("PO harus di Cancel dahulu")