summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-08-22 09:49:37 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-08-22 09:49:37 +0700
commit3571ed7485b848e9ebfa1800392ceeaf34655bb9 (patch)
tree1c0ab706cd05ff4caab783192b50afd82f510333
parenta9f2bd56c9177d7c86abd92004f826a764a8d420 (diff)
<iman> delete on hand quantity
-rw-r--r--indoteknik_custom/models/solr/product_template.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/indoteknik_custom/models/solr/product_template.py b/indoteknik_custom/models/solr/product_template.py
index 6526bbfd..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({