summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortrisusilo48 <tri.susilo@altama.co.id>2025-03-06 08:53:40 +0700
committertrisusilo48 <tri.susilo@altama.co.id>2025-03-06 08:53:40 +0700
commitd516d0a28fdf78d0135cd480537e2079e1f1a006 (patch)
tree68301eb5a2e7ca88b085299795d31e34ba9ede29
parentafa847523195b695ec73430f9d1bda5a2fbfda51 (diff)
tambah validasi
-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 e1074f42..4304d889 100755
--- a/indoteknik_custom/models/sale_order.py
+++ b/indoteknik_custom/models/sale_order.py
@@ -486,7 +486,7 @@ class SaleOrder(models.Model):
product_sla = self.env['product.sla'].search([('product_variant_id', '=', line.product_id.id)], limit=1)
if(product_sla == False):
continue
- slatime = int(product_sla.sla) if product_sla and product_sla.sla and product_sla.sla != 'Indent' else 15
+ slatime = int(product_sla.sla) if product_sla and product_sla.sla and product_sla.sla != 'Indent' and "hari" in product_sla.sla.lower() else 15
max_slatime = max(max_slatime, slatime)
if rec.date_order: