From 31da0cd472b06e44407c7af20d5dab53e693729b Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Wed, 12 Jun 2024 17:06:21 +0700 Subject: add sku to description --- indoteknik_custom/models/sale_order_line.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indoteknik_custom/models/sale_order_line.py b/indoteknik_custom/models/sale_order_line.py index d58157ee..2073edce 100644 --- a/indoteknik_custom/models/sale_order_line.py +++ b/indoteknik_custom/models/sale_order_line.py @@ -142,7 +142,7 @@ class SaleOrderLine(models.Model): line.tax_id = line.order_id.sales_tax_id line.purchase_price = self._get_valid_purchase_price(purchase_price) - line_name = (line.product_id.name if line.product_id.name else '') + ' ' + \ + line_name = ('[' + line.product_id.default_code + ']' if line.product_id.default_code else '') + ' ' + \ (line.product_id.name if line.product_id.name else '') + ' ' + \ ('(' + line.product_id.product_template_attribute_value_ids.name + ')' if line.product_id.product_template_attribute_value_ids.name else '') + ' ' + \ (line.product_id.short_spesification if line.product_id.short_spesification else '') line.name = line_name -- cgit v1.2.3