summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorNans Lefebvre <len@odoo.com>2019-01-23 12:06:28 +0000
committerNans Lefebvre <len@odoo.com>2019-01-24 07:09:00 +0000
commitcb9466cf9c8152821a1f5ef93a14197654399805 (patch)
tree087e14374c5ebc6eb0c79665a6eb5778fecf16ec /addons/web/static/src/js/views/basic/basic_controller.js
parenta63a953a2dd216d313a7adaeb21345f5258247fa (diff)
[FIX] rating: add search method on non-stored rating attribute
Commit f727e9d9b6a2029b8625ecff229ccd742598322b made the rating field of mail.message non-stored for performance reasons. When the rating is activated on the website, it adds the possibility to filter product reviews by rating (1 to 5 stars). It does so by searching the messages that have a given rating value. However the osv complains that you can't search on a non-stored field. As a result, instead of displaying messages filtered by ratings, it would always display all of them. We add a search='_search_rating_value' on the field to allow that field to be searched anyway. opw 1931038 closes odoo/odoo#30499
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions