diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2024-06-12 17:08:20 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2024-06-12 17:08:20 +0700 |
| commit | 88f75ecc44ff4027cf0273b1a93d70f4e97d6a32 (patch) | |
| tree | 50c770f781663aed3fae66c8783d8a0d75600b7e | |
| parent | 31da0cd472b06e44407c7af20d5dab53e693729b (diff) | |
fix error
| -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 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 |
