summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xindoteknik_custom/models/sale_order.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/sale_order.py b/indoteknik_custom/models/sale_order.py
index 037fff7b..fc99da36 100755
--- a/indoteknik_custom/models/sale_order.py
+++ b/indoteknik_custom/models/sale_order.py
@@ -484,7 +484,7 @@ class SaleOrder(models.Model):
max_slatime = 1 # Default SLA jika tidak ada
for line in rec.order_line:
product_sla = self.env['product.sla'].search([('product_variant_id', '=', line.product_id.id)], limit=1)
- slatime = int(product_sla.sla) if product_sla and product_sla.sla else 1
+ slatime = int(product_sla.sla) if product_sla and product_sla.sla and product_sla.sla != 'Indent' else 15
max_slatime = max(max_slatime, slatime)
if rec.date_order: