summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/product_template.py
diff options
context:
space:
mode:
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,