From a9c617802edec9feb01a4bc8baf09b68e39df6d8 Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Thu, 30 Mar 2023 09:10:56 +0700 Subject: solr change from int to float for stock total --- indoteknik_custom/models/apache_solr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indoteknik_custom/models/apache_solr.py b/indoteknik_custom/models/apache_solr.py index 7a773fd6..65e875cc 100644 --- a/indoteknik_custom/models/apache_solr.py +++ b/indoteknik_custom/models/apache_solr.py @@ -51,7 +51,7 @@ class ApacheSolr(models.Model): 'price_discount_f': price_excl_after_disc or template.product_variant_id._get_website_price_after_disc_and_tax(), 'tax_f': template.product_variant_id._get_website_tax(), 'variant_total_i': template.product_variant_count, - 'stock_total_i': template.qty_stock_vendor, + 'stock_total_f': template.qty_stock_vendor, 'weight_f': template.weight, 'manufacture_id_i': template.x_manufacture.id or 0, 'image_promotion_1_s': self.env['ir.attachment'].api_image('x_manufactures', 'image_promotion_1', template.x_manufacture.id), -- cgit v1.2.3