summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/sale_order.py
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2024-10-02 15:10:46 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2024-10-02 15:10:46 +0700
commit27a603a8bc4750dcacd295e07144c5ce2621783c (patch)
treeef5f18bb29eb9defb3246b43a88f4afd6cc5fb4d /indoteknik_custom/models/sale_order.py
parenta2d93b35cc849d742e851f5d876557ac18c1a9e1 (diff)
cr estimated shipping price + cr user company request
Diffstat (limited to 'indoteknik_custom/models/sale_order.py')
-rwxr-xr-xindoteknik_custom/models/sale_order.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/indoteknik_custom/models/sale_order.py b/indoteknik_custom/models/sale_order.py
index 8c506c47..2b20a533 100755
--- a/indoteknik_custom/models/sale_order.py
+++ b/indoteknik_custom/models/sale_order.py
@@ -145,8 +145,9 @@ class SaleOrder(models.Model):
missing_weight_products.append(line.product_id.name)
if missing_weight_products:
- product_names = ', '.join(missing_weight_products)
- self.message_post(body=f"Produk berikut tidak memiliki berat: {product_names}")
+ product_names = '\n'.join(missing_weight_products)
+ self.message_post(body=f"Produk berikut tidak memiliki berat: \n{product_names}")
+
if total_weight == 0:
raise UserError("Tidak dapat mengestimasi ongkir tanpa berat yang valid.")