From b8356524ab2d381affe438a85e1662a08fcd3026 Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Tue, 22 Aug 2023 11:23:56 +0700 Subject: auto sync solr --- indoteknik_custom/models/product_template.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'indoteknik_custom/models/product_template.py') 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, -- cgit v1.2.3