From e9dec832ab749b1c72dc358603d00ad7a35d4bb6 Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Sat, 25 Nov 2023 09:21:30 +0700 Subject: Update domain filter solr_flag in product template to solr_queue --- indoteknik_custom/models/solr/product_template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indoteknik_custom/models/solr/product_template.py b/indoteknik_custom/models/solr/product_template.py index 648a0625..c09a6e5a 100644 --- a/indoteknik_custom/models/solr/product_template.py +++ b/indoteknik_custom/models/solr/product_template.py @@ -34,7 +34,7 @@ class ProductTemplate(models.Model): templates._create_solr_queue('_sync_product_template_to_solr') def solr_flag_to_solr(self, limit=500): - template_products = self.search([('solr_flag', '=', 2)], limit=limit) + template_products = self.search([('solr_flag', '=', 2), ('active', 'in', [True, False])], limit=limit) for product in template_products: product._create_solr_queue('_sync_product_template_to_solr') product._create_solr_queue('_sync_price_to_solr') -- cgit v1.2.3