diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2024-03-06 13:49:43 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2024-03-06 13:49:43 +0700 |
| commit | 46d50e970b14ca7f3a8da53702ef2933178dbbf0 (patch) | |
| tree | 0d2750de62eed41a6934f504509b3f62fccf8f7e | |
| parent | b774b4d834ee8f77b5d2782e88ed910d6778b9be (diff) | |
Fix cancel web approval in sale order
| -rwxr-xr-x | indoteknik_custom/models/sale_order.py | 3 |
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") |
