Skip to content
Snippets Groups Projects
Commit 0196a4f2 authored by Goffin Simon's avatar Goffin Simon
Browse files

[FIX] website_rating: No round on product's rating


Steps to reproduce the bug:

- Install website_sale
- Go to the shop and select a product P
- Enable ratings on P and add 3 ratings (4/5, 5/5, 5/5)

Bug:

The ratings displayed were 33.3333333... and 66.6666666... instead of 33 and 67

opw:2634167

closes odoo/odoo#75985

Signed-off-by: default avatarSimon Goffin (sig) <sig@openerp.com>
parent 09299eaf
No related branches found
No related tags found
No related merge requests found
......@@ -62,7 +62,7 @@ odoo.define('website_rating.thread', function(require) {
if(0 < rating && rating <= 5){
rating_data['percent'].push({
'num': rating,
'percent': result['rating_stats']['percent'][rating],
'percent': Math.round(result['rating_stats']['percent'][rating]),
});
}
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment