summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIndoteknik . <it@fixcomart.co.id>2025-06-16 10:59:35 +0700
committerIndoteknik . <it@fixcomart.co.id>2025-06-16 10:59:35 +0700
commit9b6aa67f911a0db8d466d2f63cf1d8ce43ab8e14 (patch)
tree47cf2698320b90be4a48b088330454c934c42919
parentac3e99d4d7e1fd21aa146d621a06b42df86e3f7b (diff)
(andri) fix autoset checkout SO custom
-rwxr-xr-xindoteknik_custom/models/sale_order.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/indoteknik_custom/models/sale_order.py b/indoteknik_custom/models/sale_order.py
index 39b74069..0662522f 100755
--- a/indoteknik_custom/models/sale_order.py
+++ b/indoteknik_custom/models/sale_order.py
@@ -2755,7 +2755,8 @@ class SaleOrder(models.Model):
continue
# Skip jika Self Pick Up
- if order.carrier_id and order.carrier_id.id == 32:
+ if int(order.carrier_id.id or 0) == 32:
+ _logger.info(f"[Checkout] Skip estimasi: Self Pickup untuk SO {order.name}")
order.select_shipping_option = 'custom'
continue