summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFIN-IT_AndriFP <andrifebriyadiputra@gmail.com>2026-01-15 19:41:04 +0700
committerFIN-IT_AndriFP <andrifebriyadiputra@gmail.com>2026-01-15 19:41:04 +0700
commitfe4923c5a9b6b7bff15ee47113849be57e620c15 (patch)
treecd492ba6f0ea095c92d85258990a24dc4d162e3c
parenta571ac15c0cf643542acaf7051ccc8db6976c9d6 (diff)
add field magento & attribute set to solr
-rw-r--r--indoteknik_custom/models/solr/apache_solr.py6
-rw-r--r--indoteknik_custom/models/solr/product_product.py6
2 files changed, 6 insertions, 6 deletions
diff --git a/indoteknik_custom/models/solr/apache_solr.py b/indoteknik_custom/models/solr/apache_solr.py
index 4d6f8db2..21fb15d2 100644
--- a/indoteknik_custom/models/solr/apache_solr.py
+++ b/indoteknik_custom/models/solr/apache_solr.py
@@ -270,9 +270,9 @@ class ApacheSolr(models.Model):
'tax_f': tax,
'stock_total_f': variant.qty_stock_vendor,
'weight_f': variant.product_tmpl_id.weight,
- # 'has_magento_b': variant.has_magento,
- # 'attribute_set_id_i': variant.product_tmpl_id.x_attribute_set_id or 0,
- # 'attribute_set_name_s': variant.product_tmpl_id.x_attribute_set_name or '',
+ 'has_magento_b': variant.has_magento,
+ 'attribute_set_id_i': variant.product_tmpl_id.x_attribute_set_id or 0,
+ 'attribute_set_name_s': variant.product_tmpl_id.x_attribute_set_name or '',
'manufacture_id_i': variant.product_tmpl_id.x_manufacture.id or 0,
'manufacture_name_s': variant.product_tmpl_id.x_manufacture.x_name or '',
'manufacture_name': variant.product_tmpl_id.x_manufacture.x_name or '',
diff --git a/indoteknik_custom/models/solr/product_product.py b/indoteknik_custom/models/solr/product_product.py
index 529aabbb..a90bcb98 100644
--- a/indoteknik_custom/models/solr/product_product.py
+++ b/indoteknik_custom/models/solr/product_product.py
@@ -74,9 +74,9 @@ class ProductProduct(models.Model):
'image_mobile_s': ir_attachment.api_image('product.template', 'image_256', variant.product_tmpl_id.id),
'stock_total_f': variant.qty_free_bandengan,
'weight_f': variant.weight,
- # 'has_magento_b': variant.has_magento,
- # 'attribute_set_id_i': variant.product_tmpl_id.x_attribute_set_id or 0,
- # 'attribute_set_name_s': variant.product_tmpl_id.x_attribute_set_name or '',
+ 'has_magento_b': variant.has_magento,
+ 'attribute_set_id_i': variant.product_tmpl_id.x_attribute_set_id or 0,
+ 'attribute_set_name_s': variant.product_tmpl_id.x_attribute_set_name or '',
'manufacture_id_i': variant.product_tmpl_id.x_manufacture.id or 0,
'manufacture_name_s': variant.product_tmpl_id.x_manufacture.x_name or '',
'manufacture_name': variant.product_tmpl_id.x_manufacture.x_name or '',