diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-11-25 09:21:30 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-11-25 09:21:30 +0700 |
| commit | e9dec832ab749b1c72dc358603d00ad7a35d4bb6 (patch) | |
| tree | d964695d51166b463dd994b3e661c4f930ba5710 | |
| parent | 36597ba3ec85ccdb99c02a867499e19f0b43a8b2 (diff) | |
Update domain filter solr_flag in product template to solr_queue
| -rw-r--r-- | indoteknik_custom/models/solr/product_template.py | 2 |
1 files changed, 1 insertions, 1 deletions
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') |
