summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/solr
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2024-06-06 10:45:47 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2024-06-06 10:45:47 +0700
commit00ebebce72441282bae3494088b9d6dd28df6e97 (patch)
treea044ed69f7715c1008c4fc2a90b1b5a285ad0b8a /indoteknik_custom/models/solr
parent9acb6bc2039b7004105a1987be8002c4067f85f9 (diff)
add short_spesification on product variant, fix note detail purchasing job
Diffstat (limited to 'indoteknik_custom/models/solr')
-rw-r--r--indoteknik_custom/models/solr/product_product.py2
-rw-r--r--indoteknik_custom/models/solr/product_template.py2
2 files changed, 4 insertions, 0 deletions
diff --git a/indoteknik_custom/models/solr/product_product.py b/indoteknik_custom/models/solr/product_product.py
index c14f6b98..f09c2dfb 100644
--- a/indoteknik_custom/models/solr/product_product.py
+++ b/indoteknik_custom/models/solr/product_product.py
@@ -73,6 +73,8 @@ class ProductProduct(models.Model):
'attributes': [x.name for x in variant.product_template_attribute_value_ids],
'has_product_info_b': True,
'publish_b': not variant.unpublished,
+ 'sni_b': variant.sni,
+ 'tkdn_b': variant.tkdn,
'qty_sold_f': variant.qty_sold
})
diff --git a/indoteknik_custom/models/solr/product_template.py b/indoteknik_custom/models/solr/product_template.py
index 062f1455..920ae463 100644
--- a/indoteknik_custom/models/solr/product_template.py
+++ b/indoteknik_custom/models/solr/product_template.py
@@ -90,6 +90,8 @@ class ProductTemplate(models.Model):
"description_t": template.website_description or '',
'has_product_info_b': True,
'publish_b': not template.unpublished,
+ 'sni_b': template.unpublished,
+ 'tkdn_b': template.unpublished,
"qty_sold_f": template.qty_sold
})