diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2023-03-30 09:10:56 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2023-03-30 09:10:56 +0700 |
| commit | a9c617802edec9feb01a4bc8baf09b68e39df6d8 (patch) | |
| tree | eded3d7c1e554d242aab97577aded80d3d26ba2b | |
| parent | b9612c63e44043b88ef9154113a8064aa8653f9a (diff) | |
solr change from int to float for stock total
| -rw-r--r-- | indoteknik_custom/models/apache_solr.py | 2 |
1 files changed, 1 insertions, 1 deletions
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), |
