[FIX] mail: open 'My Activities' from systray activity menu

Before this commit, when clicking on the activity view icon
from an item in the systray activity menu, the activity view
had no search filter by default.

This commit now auto-select 'My Activities' in the activity
view when redirected from the systray activity menu.

closes odoo/odoo#30702
This commit is contained in:
Alexandre Kühn
2019-01-30 17:18:48 +00:00
parent 5ce86a65ac
commit 24ba5ae276
2 changed files with 12 additions and 5 deletions
@@ -118,7 +118,8 @@ var ActivityMenu = Widget.extend({
name: targetAction.data('model_name'),
views: [[false, 'activity'], [false, 'kanban'], [false, 'list']],
view_mode: 'activity',
res_model: targetAction.data('res_model')
res_model: targetAction.data('res_model'),
context: { search_default_activities_my: true },
});
}
},