From 00ebebce72441282bae3494088b9d6dd28df6e97 Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Thu, 6 Jun 2024 10:45:47 +0700 Subject: add short_spesification on product variant, fix note detail purchasing job --- indoteknik_custom/models/solr/product_product.py | 2 ++ indoteknik_custom/models/solr/product_template.py | 2 ++ 2 files changed, 4 insertions(+) (limited to 'indoteknik_custom/models/solr') 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 }) -- cgit v1.2.3