summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIndoteknik . <it@fixcomart.co.id>2025-06-18 10:58:36 +0700
committerIndoteknik . <it@fixcomart.co.id>2025-06-18 10:58:36 +0700
commit80c9bc5e4590710a6b69b7d4728d21b2930b6d9b (patch)
tree85a6d7d2a96200329b9d25803b64cd23d068b2e3
parente2678c3729217dc3f6d3fe9053b53c06c6890fbb (diff)
(andri) fix validate custom shipping method
-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 7dc33133..4535ae0d 100755
--- a/indoteknik_custom/models/sale_order.py
+++ b/indoteknik_custom/models/sale_order.py
@@ -486,7 +486,7 @@ class SaleOrder(models.Model):
('sale_order_id', '=', sale_order_id),
('provider', 'ilike', provider),
])
- if matched == 0:
+ if self.select_shipping_option == 'biteship' and matched == 0:
self.carrier_id = self._origin.carrier_id
self.shipping_option_id = self._origin.shipping_option_id or False
return {