From 7bef101732668ba8044a0e4392a17b0b15eaa09b Mon Sep 17 00:00:00 2001 From: it-fixcomart Date: Wed, 17 Jul 2024 13:28:54 +0700 Subject: add description to banner --- indoteknik_custom/models/solr/x_banner_banner.py | 2 ++ indoteknik_custom/models/x_banner_banner.py | 3 ++- indoteknik_custom/views/x_banner_banner.xml | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) 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 @@ + -- cgit v1.2.3 From c279f3e51d147c8476f39384e35530948d160f30 Mon Sep 17 00:00:00 2001 From: it-fixcomart Date: Wed, 17 Jul 2024 13:41:45 +0700 Subject: update deskripsi type field --- indoteknik_custom/models/x_banner_banner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indoteknik_custom/models/x_banner_banner.py b/indoteknik_custom/models/x_banner_banner.py index 832b7505..ffbef0fd 100755 --- a/indoteknik_custom/models/x_banner_banner.py +++ b/indoteknik_custom/models/x_banner_banner.py @@ -24,4 +24,4 @@ class XBannerBanner(models.Model): ('3', '3'), ('4', '4') ], string='Group by Week') - x_description_banner = fields.Char(string="Description Banner") \ No newline at end of file + x_description_banner = fields.Text(string="Description Banner") \ No newline at end of file -- cgit v1.2.3 From a37d912981f7c7a5275855c9cfaa438781904d4a Mon Sep 17 00:00:00 2001 From: it-fixcomart Date: Wed, 17 Jul 2024 13:43:42 +0700 Subject: delete console log --- indoteknik_custom/models/solr/x_banner_banner.py | 1 - 1 file changed, 1 deletion(-) diff --git a/indoteknik_custom/models/solr/x_banner_banner.py b/indoteknik_custom/models/solr/x_banner_banner.py index ec5c4175..5a28bc62 100644 --- a/indoteknik_custom/models/solr/x_banner_banner.py +++ b/indoteknik_custom/models/solr/x_banner_banner.py @@ -51,7 +51,6 @@ class XBannerBanner(models.Model): '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() -- cgit v1.2.3 From f94f9c768e745c4117a18d16f0248904b3a5b4c0 Mon Sep 17 00:00:00 2001 From: it-fixcomart Date: Wed, 17 Jul 2024 14:14:11 +0700 Subject: update all promotion --- indoteknik_custom/models/solr/x_banner_banner.py | 3 ++- indoteknik_custom/models/x_banner_banner.py | 1 + indoteknik_custom/views/x_banner_banner.xml | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) 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 @@ + -- cgit v1.2.3