diff options
| author | Nans Lefebvre <len@odoo.com> | 2019-01-23 12:06:28 +0000 |
|---|---|---|
| committer | Nans Lefebvre <len@odoo.com> | 2019-01-24 07:09:00 +0000 |
| commit | cb9466cf9c8152821a1f5ef93a14197654399805 (patch) | |
| tree | 087e14374c5ebc6eb0c79665a6eb5778fecf16ec /addons/web/static/lib/bootstrap-datetimepicker/src/js/bootstrap-datetimepicker.js | |
| parent | a63a953a2dd216d313a7adaeb21345f5258247fa (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/lib/bootstrap-datetimepicker/src/js/bootstrap-datetimepicker.js')
0 files changed, 0 insertions, 0 deletions
