diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2020-07-09 12:07:51 +0000 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2020-07-09 13:51:28 +0000 |
| commit | ca3b3d894ba62b2709f073bc0f7379d02914bb32 (patch) | |
| tree | c0bd21be353c333f816868eac168a731316512f4 /addons/web/static/src | |
| parent | 259cf453463448fdd25b5d29f45e0d3e8eb18382 (diff) | |
[FIX] rating: count and average
In an app using rating (e.g. eLearning), get 3 ratings:
- A 5-star review
- A 3-star review
- A 0-star review
The average is 2.5 stars, while it should be 4 stars.
This happens because the 0-star review is taken into account in the
average computation, while it shouldn't. Indeed, zero star means no
review.
We apply the same login than:
https://github.com/odoo/odoo/blob/0028a602bea6a48aaa2747127ec075394732b324/addons/rating/models/rating_mixin.py#L205
opw-2290617
closes odoo/odoo#54279
X-original-commit: 4f7981f80fb55ab4bf8b30d137e45b4fda4013cd
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'addons/web/static/src')
0 files changed, 0 insertions, 0 deletions
