summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_model.js
diff options
context:
space:
mode:
authorjem-odoo <jem@openerp.com>2019-02-15 10:42:27 +0000
committerjem-odoo <jem@openerp.com>2019-02-15 10:52:53 +0000
commit98052fb51c823344b3037d3ac5920586cfdfdfe4 (patch)
treeace96e0fac94477768d64c4e76d0e71887bd3752 /addons/web/static/src/js/views/basic/basic_model.js
parent3d607880e6ed0dedc5142e3778bb0bb4ef49c32e (diff)
[FIX] rating: value range of star notation
When rating with the smiley mecanism, the rating value will be 1, 3 or 7. The rating model allow value in range [0, 10]. When using the star mecanism, usually, only 5 stars are used to introduced a rating. This will set a rating value in the range [0, 5], which is not aligned with the range of the model, nor the smiley range. Purpose of this commit is to uniformize the range of rating, so if a model is using both mecanism, the average will be correct. Solving this problem implies to apply a conversion factor between the database value and the displayed one. Migration: As only product.template was using star mecanism in odoo community, a migration step should be applied to multiply of ratings of product.template by 2. Task-1941432 closes odoo/odoo#31141
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions