summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-10-14 11:17:55 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-10-14 11:17:55 +0700
commit90d69c1f43812912dddbec1e4ccfbd0a69221590 (patch)
tree47be6e5b4081fda69e707ad9661700b649814a0e
parent3335015e0539280cc89cefae537282d5b3a4e9bb (diff)
Update sale_order.py
-rwxr-xr-xindoteknik_custom/models/sale_order.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/indoteknik_custom/models/sale_order.py b/indoteknik_custom/models/sale_order.py
index a23a6d44..00574bd8 100755
--- a/indoteknik_custom/models/sale_order.py
+++ b/indoteknik_custom/models/sale_order.py
@@ -44,10 +44,11 @@ class SaleOrder(models.Model):
for order in self:
if order.state == 'cancel' or order.state == 'done' or order.state == 'sale':
raise UserError("Status harus draft atau sent")
- if not order.partner_id.property_payment_term_id:
- raise UserError("Payment Term pada Master Data Customer harus diisi")
- if not order.partner_id.active_limit:
- raise UserError("Credit Limit pada Master Data Customer harus diisi")
+ # if not order.partner_id.property_payment_term_id:
+ # raise UserError("Payment Term pada Master Data Customer harus diisi")
+ # TODO must look credit limit and payment term parent partner
+ # if not order.partner_id.active_limit:
+ # raise UserError("Credit Limit pada Master Data Customer harus diisi")
if not order.sales_tax_id:
raise UserError("Tax di Header harus diisi")
if not order.carrier_id: