summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorAlexandre Kühn <aku@odoo.com>2018-03-12 08:38:49 +0100
committerAlexandre Kühn <aku@odoo.com>2018-03-12 08:38:52 +0100
commit3360c550ccc27137779ad3ad3d0463a6b3232736 (patch)
treeb5f9893f04794eb31c58282a19b303896ce0b34b /addons/web/static/src/js/views/basic/basic_controller.js
parent671d54114f3da570ee92d4b0a2192212eb63d87a (diff)
[FIX] board: redirect to form on calendar event click
Before this commit, when clicking on a event of a pinned calendar view in the Dashboard app, nothing occurs. The cursor turns into pointer type when hovering on an event, suggesting that clicking on it should do something. Kanban and list views redirect the user to the document's form on click, so a similar behaviour is expected with calendar view. This is indeed the case in v11, but not in v10. The reason that it works in v11 for calendar is that when we click on a record of a pinned views in dashboard, it performs a do_action to open the form view. In v10, however, it performs a do_switch_view to the form view. Since there's only one view mode when we pin something in dashboard, the processing of the click fails silently. Kanban and list were working because the dashboard app overrides their handlers functions when loading the views, which wasn't the case with calendar. This commit solves the issue by also overriding the handler function of calendar view, so that it performs a do_action to open a form instead of performing a do_switch_view to the form view. (Note: pivot and grid views work, because they use do_action) opw-1817725
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions