summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-07-17 13:28:54 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-07-17 13:28:54 +0700
commit7bef101732668ba8044a0e4392a17b0b15eaa09b (patch)
treee75107dff566473ec59c7f6bd4a7d26f2caf39ca
parent00c433febb54683b602641078d75db9ce4bbc9b5 (diff)
<iman> add description to banner
-rw-r--r--indoteknik_custom/models/solr/x_banner_banner.py2
-rwxr-xr-xindoteknik_custom/models/x_banner_banner.py3
-rwxr-xr-xindoteknik_custom/views/x_banner_banner.xml1
3 files changed, 5 insertions, 1 deletions
diff --git a/indoteknik_custom/models/solr/x_banner_banner.py b/indoteknik_custom/models/solr/x_banner_banner.py
index 67739d47..ec5c4175 100644
--- a/indoteknik_custom/models/solr/x_banner_banner.py
+++ b/indoteknik_custom/models/solr/x_banner_banner.py
@@ -49,7 +49,9 @@ 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 '',
+ 'description_banner_s': banners.x_description_banner or '',
})
+ _logger.info("[SYNC_PRODUCT_RATING_TO_SOLR] Success Set to solr product %s" % banners)
self.solr().add([document])
banners.update_last_update_solr()
diff --git a/indoteknik_custom/models/x_banner_banner.py b/indoteknik_custom/models/x_banner_banner.py
index d6884c9b..832b7505 100755
--- a/indoteknik_custom/models/x_banner_banner.py
+++ b/indoteknik_custom/models/x_banner_banner.py
@@ -23,4 +23,5 @@ class XBannerBanner(models.Model):
('2', '2'),
('3', '3'),
('4', '4')
- ], string='Group by Week') \ No newline at end of file
+ ], string='Group by Week')
+ x_description_banner = fields.Char(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 c90e718b..2af7e6e5 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_description_banner" />
<field name="last_update_solr" readonly="1"/>
</group>
<group>