summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/product_template.py
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2023-08-22 11:23:56 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2023-08-22 11:23:56 +0700
commitb8356524ab2d381affe438a85e1662a08fcd3026 (patch)
tree957cfbb3baebc525c41bb863c9abf393775aaf98 /indoteknik_custom/models/product_template.py
parentf6876ff69e37169909a40059d2945e1d84be0db3 (diff)
auto sync solr
Diffstat (limited to 'indoteknik_custom/models/product_template.py')
-rwxr-xr-xindoteknik_custom/models/product_template.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/indoteknik_custom/models/product_template.py b/indoteknik_custom/models/product_template.py
index 128297f1..1283a5cb 100755
--- a/indoteknik_custom/models/product_template.py
+++ b/indoteknik_custom/models/product_template.py
@@ -294,7 +294,7 @@ class ProductTemplate(models.Model):
category_id = category.id
category_name = category.name
solr_model = self.env['apache.solr']
- solr = solr_model.connect('local_template')
+ solr = solr_model.connect('product')
document = solr_model.get_single_doc(solr, template.id)
document.update({
'id': template.id,
@@ -435,7 +435,7 @@ class ProductProduct(models.Model):
category_id = category.id
category_name = category.name
solr_model = self.env['apache.solr']
- solr = solr_model.connect('local_variant')
+ solr = solr_model.connect('variants')
document = solr_model.get_single_doc(solr, variant.id)
document.update({
'id': variant.id,