From 6fa6d7028011dc5dcfbc14fea3eab9ea53f6b2e3 Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Tue, 12 Sep 2023 10:00:41 +0700 Subject: Fix constraint sync to solr --- indoteknik_custom/models/solr/product_public_category.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indoteknik_custom/models/solr/product_public_category.py b/indoteknik_custom/models/solr/product_public_category.py index d6a37571..804624c3 100644 --- a/indoteknik_custom/models/solr/product_public_category.py +++ b/indoteknik_custom/models/solr/product_public_category.py @@ -23,7 +23,7 @@ class ProductPublicCategory(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('name', 'english_name', 'x_studio_field_d1HS4', 'x_studio_field_f54P2', 'x_studio_field_BfNp2', 'parent_id', 'parent_frontend_id', 'website_meta_title', 'website_meta_keywords', 'website_meta_description', 'x_studio_field_4qhoN', 'sequence_frontend', 'product_tmpl_ids') def _create_solr_queue_sync_brands(self): self._create_solr_queue('_sync_categories_to_solr') -- cgit v1.2.3