summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/keywords.py
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2026-02-25 09:41:17 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2026-02-25 09:41:17 +0700
commita3ff90b7a2616a01535fc1968d4ac5bfdf9f3c26 (patch)
treed3eb7a90aee08085c04a4ebe5343b46e4ac2dc20 /indoteknik_custom/models/keywords.py
parent316b8257845d0df10153fa7e5e294a699ad17c56 (diff)
parent75972376c64d133e4dcf8cb0808a60b36db07825 (diff)
Merge branch 'odoo-backup' into feature/api-altama-matches-so
# Conflicts: # indoteknik_custom/__manifest__.py # indoteknik_custom/models/__init__.py
Diffstat (limited to 'indoteknik_custom/models/keywords.py')
-rw-r--r--indoteknik_custom/models/keywords.py31
1 files changed, 0 insertions, 31 deletions
diff --git a/indoteknik_custom/models/keywords.py b/indoteknik_custom/models/keywords.py
index 2ee217f7..3fa9dd72 100644
--- a/indoteknik_custom/models/keywords.py
+++ b/indoteknik_custom/models/keywords.py
@@ -160,37 +160,6 @@ class Keywords(models.Model):
return True
- # Old
- # def _sync_keywords_queue_callback(self):
- # """Callback method executed by apache.solr.queue - syncs keyword data to Solr"""
- # documents = []
- # for keyword in self:
- # # Skip syncing if product count is 0
- # if len(keyword.product_ids) == 0:
- # _logger.info('Skipping Solr sync for keyword "%s" - no products found', keyword.keywords)
- # continue
-
- # searchkey = (keyword.keywords or '').strip().lower().replace(' ', '-')
- # try:
- # doc = {
- # 'id': keyword.id,
- # 'category_id_i': keyword.category_id.id,
- # 'keywords_s': searchkey,
- # 'url_s': keyword.url,
- # 'product_ids_is': [p.product_tmpl_id.id for p in keyword.product_ids],
- # }
- # documents.append(doc)
- # except Exception as e:
- # _logger.error('failed %s', e)
- # _logger.error('doc data: %s', doc)
-
- # if documents:
- # solr.add(documents)
-
- # self.write({'solr_flag': 0})
-
- # return True
-
def _sync_keywords_queue_callback(self):
success_keywords = self.browse()