summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2024-09-03 06:21:11 +0000
committerIT Fixcomart <it@fixcomart.co.id>2024-09-03 06:21:11 +0000
commita50b6fd128b643e542ca023aa40f3803260bcf66 (patch)
treecbd9b51912f803d1c2f40cb97e747abb44c693ed
parent857567b0d10c5888e20646b7258cc13f0cedfdd2 (diff)
parent51face2a473c347e338650d059445dc4f085d96e (diff)
Merged in add_field_programLine (pull request #213)
<iman> update field
-rw-r--r--indoteknik_custom/models/solr/promotion_program_line.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/solr/promotion_program_line.py b/indoteknik_custom/models/solr/promotion_program_line.py
index c6dbf213..3e3a2a28 100644
--- a/indoteknik_custom/models/solr/promotion_program_line.py
+++ b/indoteknik_custom/models/solr/promotion_program_line.py
@@ -61,7 +61,7 @@ class PromotionProgramLine(models.Model):
'total_qty_i': sum([x.qty for x in rec.product_ids] + [x.qty for x in rec.free_product_ids]),
'total_qty_sold_f': [x.product_id.qty_sold for x in rec.product_ids],
'active_b': rec.active,
- "manufacture_name_s": rec.product_ids.product_id.x_manufacture.display_name,
+ "manufacture_name_s": rec.product_ids.product_id.x_manufacture.x_name or '',
"category_name": category_names,
})