diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2024-06-18 16:17:38 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2024-06-18 16:17:38 +0700 |
| commit | acca01df9c8f8ac22551d02d80d93dd00362f993 (patch) | |
| tree | 996dc4c0a3b8f7664c2cce0459f12c0abde343ac | |
| parent | 4349b52b8221276a19104a21b2c2cd057e7ee725 (diff) | |
bf
| -rw-r--r-- | indoteknik_custom/models/solr/apache_solr.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/indoteknik_custom/models/solr/apache_solr.py b/indoteknik_custom/models/solr/apache_solr.py index 3d6eeeca..d25b5fd6 100644 --- a/indoteknik_custom/models/solr/apache_solr.py +++ b/indoteknik_custom/models/solr/apache_solr.py @@ -295,6 +295,7 @@ class ApacheSolr(models.Model): def _solr_sync_recommendation(self, limit=100): variants = self.env['product.product'].search([('solr_flag', '=', 2)], limit=limit) + document = {} for variant in variants: if variant.product_tmpl_id: # Check if product_tmpl_id exists try: |
