summaryrefslogtreecommitdiff
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
parenta37d912981f7c7a5275855c9cfaa438781904d4a (diff)
<iman> update all promotion
-rw-r--r--indoteknik_custom/models/solr/x_banner_banner.py3
-rwxr-xr-xindoteknik_custom/models/x_banner_banner.py1
-rwxr-xr-xindoteknik_custom/views/x_banner_banner.xml1
3 files changed, 4 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])
diff --git a/indoteknik_custom/models/x_banner_banner.py b/indoteknik_custom/models/x_banner_banner.py
index ffbef0fd..810bdf39 100755
--- a/indoteknik_custom/models/x_banner_banner.py
+++ b/indoteknik_custom/models/x_banner_banner.py
@@ -24,4 +24,5 @@ class XBannerBanner(models.Model):
('3', '3'),
('4', '4')
], string='Group by Week')
+ x_headline_banner = fields.Text(string="Headline Banner")
x_description_banner = fields.Text(string="Description Banner") \ No newline at end of file
diff --git a/indoteknik_custom/views/x_banner_banner.xml b/indoteknik_custom/views/x_banner_banner.xml
index 2af7e6e5..ec1e38a5 100755
--- a/indoteknik_custom/views/x_banner_banner.xml
+++ b/indoteknik_custom/views/x_banner_banner.xml
@@ -31,6 +31,7 @@
<field name="x_status_banner" />
<field name="sequence" />
<field name="group_by_week" />
+ <field name="x_headline_banner" />
<field name="x_description_banner" />
<field name="last_update_solr" readonly="1"/>
</group>