diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-06-16 11:09:00 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-06-16 11:09:00 +0700 |
| commit | 2ef1e9e44ba6b8efa301dbe58c61352389aac55f (patch) | |
| tree | e78b44c739a9be23d6b845db99ea3c1311a4b52e /indoteknik_custom/models | |
| parent | 777d925ec89357b0f5bd11faa8bfb5adfcd6b151 (diff) | |
| parent | ad2e6cc9d119e0b72ccdb353eb8a2e0fa304e359 (diff) | |
Merge branch 'release' of bitbucket.org:altafixco/indoteknik-addons into release
Diffstat (limited to 'indoteknik_custom/models')
| -rwxr-xr-x | indoteknik_custom/models/sale_order.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indoteknik_custom/models/sale_order.py b/indoteknik_custom/models/sale_order.py index cbc6a60a..52b959db 100755 --- a/indoteknik_custom/models/sale_order.py +++ b/indoteknik_custom/models/sale_order.py @@ -336,8 +336,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() |
