summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2023-03-30 09:05:46 +0700
committerstephanchrst <stephanchrst@gmail.com>2023-03-30 09:05:46 +0700
commitb9612c63e44043b88ef9154113a8064aa8653f9a (patch)
tree4f83db92bf61b4501dbc8eb95605db3fcf952ee9
parentd6c1410bd1e4160cece30516492ebf391740eeb8 (diff)
solr change type data from int to float for product rating
-rw-r--r--indoteknik_custom/models/apache_solr.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/apache_solr.py b/indoteknik_custom/models/apache_solr.py
index 16b70808..7a773fd6 100644
--- a/indoteknik_custom/models/apache_solr.py
+++ b/indoteknik_custom/models/apache_solr.py
@@ -44,7 +44,7 @@ class ApacheSolr(models.Model):
'display_name_s': template.display_name,
'name_s': template.name,
'default_code_s': template.default_code,
- 'product_rating_i': template.product_rating,
+ 'product_rating_f': template.product_rating,
'product_id_i': template.id,
'image_s': self.env['ir.attachment'].api_image('product.template', 'image_512', template.id),
'price_f': price_excl or template.product_variant_id._get_website_price_exclude_tax(),