[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:
@@ -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,
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user