diff options
| author | Indoteknik . <it@fixcomart.co.id> | 2025-06-18 10:58:36 +0700 |
|---|---|---|
| committer | Indoteknik . <it@fixcomart.co.id> | 2025-06-18 10:58:36 +0700 |
| commit | 80c9bc5e4590710a6b69b7d4728d21b2930b6d9b (patch) | |
| tree | 85a6d7d2a96200329b9d25803b64cd23d068b2e3 | |
| parent | e2678c3729217dc3f6d3fe9053b53c06c6890fbb (diff) | |
(andri) fix validate custom shipping method
| -rwxr-xr-x | indoteknik_custom/models/sale_order.py | 2 |
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 { |
