[FIX] mail: allow to switch on form view

Currently, when clicking on the systray activity action icon and click on any
record from the activity, kanban or list view, not redirecting to its form view.

This commit adds the form view for that action and now click on record will
redirect to its form view.

task-2198480
Closes https://github.com/odoo/odoo/pull/46877

closes odoo/odoo#47208

X-original-commit: 3fd30316c0af9a6ca2ea4962f2e2f832e68dee54
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
This commit is contained in:
Hiral Bhavsar
2020-03-09 14:03:25 +00:00
parent 835974c35c
commit 0712c5222c
@@ -119,7 +119,7 @@ var ActivityMenu = Widget.extend({
this.do_action({
type: 'ir.actions.act_window',
name: targetAction.data('model_name'),
views: [[false, 'activity'], [false, 'kanban'], [false, 'list']],
views: [[false, 'activity'], [false, 'kanban'], [false, 'list'], [false, 'form']],
view_mode: 'activity',
res_model: targetAction.data('res_model'),
domain: domain,