diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2024-02-27 13:27:39 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2024-02-27 13:27:39 +0700 |
| commit | 46a7cc5601ceab2a7a6cdf4d74e0fa26ce13ab8a (patch) | |
| tree | fd5ab4b2b4d4438cd691bdd41d6e067f510254e0 /indoteknik_custom/models/solr/promotion_program_line.py | |
| parent | ac4f111ba1605fe3891582b7fc396e740130791d (diff) | |
Fix active solr key on program line
Diffstat (limited to 'indoteknik_custom/models/solr/promotion_program_line.py')
| -rw-r--r-- | indoteknik_custom/models/solr/promotion_program_line.py | 2 |
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 b241b248..9cd226fb 100644 --- a/indoteknik_custom/models/solr/promotion_program_line.py +++ b/indoteknik_custom/models/solr/promotion_program_line.py @@ -52,7 +52,7 @@ class PromotionProgramLine(models.Model): 'free_product_ids': [x.product_id.id for x in rec.free_product_ids], 'free_products_s': json.dumps(free_products), 'total_qty_i': sum([x.qty for x in rec.product_ids] + [x.qty for x in rec.free_product_ids]), - 'active': rec.active + 'active_b': rec.active }) self.solr().add([document]) self.solr().commit() |
