[FIX] crm,mail: clear breadcrumb when redirecting to activities from systray

Before this commit:

When accessing activities from the systray, any existing breadcrumb-item should
be clearer.

After this commit:

Clear breadcrumb-item when access activities from the systray.

Task-2342246

closes odoo/odoo#60018

X-original-commit: a9b32448c4a6227ef8e729436cb793ea9c24c289
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
This commit is contained in:
Kamesh Patel
2020-10-14 15:12:42 +00:00
parent 840728b4dc
commit c8ba009c6c
2 changed files with 4 additions and 1 deletions
@@ -46,7 +46,8 @@ ActivityMenu.include({
// So, duplicates are faking the count and "Load more" doesn't show up
context['force_search_count'] = 1;
this.do_action('crm.crm_lead_action_my_activities', {
additional_context: context
additional_context: context,
clear_breadcrumbs: true,
});
} else {
this._super.apply(this, arguments);
@@ -136,6 +136,8 @@ var ActivityMenu = Widget.extend({
view_mode: 'activity',
res_model: targetAction.data('res_model'),
domain: domain,
}, {
clear_breadcrumbs: true,
});
}
},