diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2025-03-06 13:08:29 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2025-03-06 13:08:29 +0700 |
| commit | a4670aeed9688a33f56c07fe65984664390382f2 (patch) | |
| tree | 1b6e86dcf3f64b5d53362a62ad171bfbd21bc3f0 /indoteknik_custom/models | |
| parent | 1abd80916c1ec843343dacf2cd3a359651e7cd43 (diff) | |
<iman> update code api edit address
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 4304d889..4f85027a 100755 --- a/indoteknik_custom/models/sale_order.py +++ b/indoteknik_custom/models/sale_order.py @@ -484,8 +484,8 @@ 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) - if(product_sla == False): - continue + # if(product_sla == False): + # continue 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) |
