summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/solr
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-07-17 14:14:11 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-07-17 14:14:11 +0700
commitf94f9c768e745c4117a18d16f0248904b3a5b4c0 (patch)
tree5e2f2dfe8a56048922dcdf84bae8572c54d03b2f /indoteknik_custom/models/solr
parenta37d912981f7c7a5275855c9cfaa438781904d4a (diff)
<iman> update all promotion
Diffstat (limited to 'indoteknik_custom/models/solr')
-rw-r--r--indoteknik_custom/models/solr/x_banner_banner.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/indoteknik_custom/models/solr/x_banner_banner.py b/indoteknik_custom/models/solr/x_banner_banner.py
index 5a28bc62..8452644c 100644
--- a/indoteknik_custom/models/solr/x_banner_banner.py
+++ b/indoteknik_custom/models/solr/x_banner_banner.py
@@ -23,7 +23,7 @@ class XBannerBanner(models.Model):
'function_name': function_name
})
- @api.constrains('x_name', 'x_url_banner', 'background_color', 'x_banner_image', 'x_banner_category', 'x_relasi_manufacture', 'x_sequence_banner', 'x_status_banner', 'sequence', 'group_by_week')
+ @api.constrains('x_name', 'x_url_banner', 'background_color', 'x_banner_image', 'x_banner_category', 'x_relasi_manufacture', 'x_sequence_banner', 'x_status_banner', 'sequence', 'group_by_week', 'headline_banner_s', 'description_banner_s')
def _create_solr_queue_sync_brands(self):
self._create_solr_queue('_sync_banners_to_solr')
@@ -49,6 +49,7 @@ class XBannerBanner(models.Model):
'category_id_i': banners.x_banner_category.id or '',
'manufacture_id_i': banners.x_relasi_manufacture.id or '',
'group_by_week': banners.group_by_week or '',
+ 'headline_banner_s': banners.x_headline_banner or '',
'description_banner_s': banners.x_description_banner or '',
})
self.solr().add([document])