diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2024-09-25 10:36:21 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2024-09-25 10:36:21 +0700 |
| commit | 41b8281f9e01d675d0078bbe131e41acc9a8c15a (patch) | |
| tree | dac2b45fd488501113e2103b721c7201a649aee7 /indoteknik_custom/models/solr/apache_solr.py | |
| parent | 8793cf3b8dea2c87024b4c9f49077cc8c6b982d8 (diff) | |
fix error
Diffstat (limited to 'indoteknik_custom/models/solr/apache_solr.py')
| -rw-r--r-- | indoteknik_custom/models/solr/apache_solr.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indoteknik_custom/models/solr/apache_solr.py b/indoteknik_custom/models/solr/apache_solr.py index f6b29cd8..f04b5e84 100644 --- a/indoteknik_custom/models/solr/apache_solr.py +++ b/indoteknik_custom/models/solr/apache_solr.py @@ -70,7 +70,7 @@ class ApacheSolr(models.Model): stocks = self.env['stock.vendor'].search(query, limit=limit) documents = [] for stock in stocks: - stock_total = int(stock.product_variant_id.product_tmpl_id.qty_available_bandengan) + stock_total = int(stock.product_variant_id.product_tmpl_id.qty_stock_vendor) # dict_stock = dict({"set": stock_total}) document = { "id": int(stock.product_variant_id.product_tmpl_id.id), @@ -178,7 +178,7 @@ class ApacheSolr(models.Model): 'price_discount_f': price_excl_after_disc, 'tax_f': tax, 'variant_total_i': template.product_variant_count, - 'stock_total_f': template.qty_available_bandengan, + 'stock_total_f': template.qty_stock_vendor, 'weight_f': template.weight, 'manufacture_id_i': template.x_manufacture.id or 0, 'manufacture_name_s': template.x_manufacture.x_name or '', |
