summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2024-08-22 02:50:11 +0000
committerIT Fixcomart <it@fixcomart.co.id>2024-08-22 02:50:11 +0000
commitfcc14b595646ce5ad1de6cff3f9c44dae35ef0ce (patch)
tree1c0ab706cd05ff4caab783192b50afd82f510333
parent2dd1cc784d83df5d5a46a6e8cab77ec386b9df42 (diff)
parent3571ed7485b848e9ebfa1800392ceeaf34655bb9 (diff)
Merged in delete-field-solr (pull request #201)
<iman> delete field on hand quantity solr
-rw-r--r--indoteknik_custom/models/solr/product_template.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/indoteknik_custom/models/solr/product_template.py b/indoteknik_custom/models/solr/product_template.py
index 44e609d4..970219c7 100644
--- a/indoteknik_custom/models/solr/product_template.py
+++ b/indoteknik_custom/models/solr/product_template.py
@@ -77,7 +77,6 @@ class ProductTemplate(models.Model):
])
is_in_bu = bool(stock_quant)
- on_hand_qty = sum(stock_quant.mapped('quantity')) if stock_quant else 0
document = solr_model.get_doc('product', template.id)
document.update({
@@ -110,7 +109,6 @@ class ProductTemplate(models.Model):
'tkdn_b': template.unpublished,
"qty_sold_f": template.qty_sold,
"is_in_bu_b": is_in_bu,
- "on_hand_qty_i": on_hand_qty,
"voucher_min_purchase_f" : voucher.min_purchase_amount or 0,
"voucher_discount_type_s" : voucher.discount_type or '',
"voucher_discount_amount_f" : voucher.discount_amount or 0,