diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2024-06-12 17:06:21 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2024-06-12 17:06:21 +0700 |
| commit | 31da0cd472b06e44407c7af20d5dab53e693729b (patch) | |
| tree | 12f7e6a0401177a2d85e065b822d075db26bb0c5 | |
| parent | 82e93d2e88cec9422113906bfcafd154f4fdb985 (diff) | |
add sku to description
| -rw-r--r-- | indoteknik_custom/models/sale_order_line.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
