diff options
| author | Indoteknik . <it@fixcomart.co.id> | 2025-05-29 20:26:55 +0700 |
|---|---|---|
| committer | Indoteknik . <it@fixcomart.co.id> | 2025-05-29 20:26:55 +0700 |
| commit | b641951b811590231c060ac40ef633f59037bfbb (patch) | |
| tree | b6de12829669efccfba883aceab0c03e257218d0 | |
| parent | 6e56ffc2c5b5ee22bc97d2518274eeb8a959e80e (diff) | |
(andri) revisi biteship terkait berat
| -rwxr-xr-x | indoteknik_custom/models/sale_order.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/indoteknik_custom/models/sale_order.py b/indoteknik_custom/models/sale_order.py index a4166016..94cbfb84 100755 --- a/indoteknik_custom/models/sale_order.py +++ b/indoteknik_custom/models/sale_order.py @@ -652,8 +652,8 @@ class SaleOrder(models.Model): product_names = '<br/>'.join(missing_weight_products) self.message_post(body=f"Produk berikut tidak memiliki berat:<br/>{product_names}") - if total_weight == 0: - raise UserError("Tidak dapat mengestimasi ongkir tanpa karena berat produk = 0 kg.") + # if total_weight == 0: + # raise UserError("Tidak dapat mengestimasi ongkir tanpa karena berat produk = 0 kg.") # Validasi alamat pengiriman if not self.real_shipping_id: @@ -674,8 +674,8 @@ class SaleOrder(models.Model): total_weight = self._validate_for_shipping_estimate() weight_gram = int(total_weight * 1000) - # if weight_gram < 100: - # weight_gram = 100 + if weight_gram < 100: + weight_gram = 100 items = [{ "name": "Paket Pesanan", |
