From 88f75ecc44ff4027cf0273b1a93d70f4e97d6a32 Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Wed, 12 Jun 2024 17:08:20 +0700 Subject: fix error --- 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 2073edce..509e3d1c 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.default_code + ']' if line.product_id.default_code else '') + ' ' + \ (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