summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorNans Lefebvre <len@odoo.com>2019-02-05 09:23:58 +0000
committerNans Lefebvre <len@odoo.com>2019-02-08 13:45:02 +0000
commit3da19480b24ee6c12569e77bd765ad561cc2e312 (patch)
tree863c877cdd67d6f6f800b684f808e9b2af712b8a /addons/web/static/src/js/views/basic/basic_controller.js
parentafc5ec8bdfa90df567a75a3cb7432bf740364de2 (diff)
[FIX] calendar: do not try to read virtual ids from database
Try to access a recurring event. The _search function defined in mail_message tries to read records, building a list of ids. They are given to the _search of calendar, which builds its custom SQL query using the data it received. Since it got recurring ids instead of real ones, we get: SELECT id, ("calendar_event"."id" in (101,'101-2019011118000... Bug introduced in f74f5edc7778a3afacc454c31993ac8502d3d0ee. If we get such a request, we convert the virtual ids back to real ids. Note that a similar conversion was done in calendar's override of "mail.message" _search method, 'in the case it was asked on virtual ids'. Note that as of this commit making messages on virtual_ids doesn't even work, so it is possible that this mess was introduced for the chatter feature, which has been broken before, and so all of it is useless. closes #27474 closes #28288 closes #28621 opw 1928562 opw 1930763 opw 1935148 closes odoo/odoo#30827
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions