[FIX] mail: pass context from schedule activity

Problem is that while creating Opportunity from schedule activity at the
bottom of the activity view, context was not applied.
For Example, CRM > Pipeline, while creating opportunity that will create
a lead because context was not applied.
In this commit, context should be applied.

task-2072491

closes odoo/odoo#37139

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
This commit is contained in:
Jinal Patel
2019-09-19 11:28:00 +00:00
parent efd97b7ea0
commit 59c90e9b1d
@@ -46,6 +46,7 @@ var ActivityController = BasicController.extend({
title: _.str.sprintf(_t("Search: %s"), this.renderer.arch.attrs.string),
no_create: !this.activeActions.create,
disable_multiple_selection: true,
context: state.context,
on_selected: function (record) {
var fakeRecord = self.renderer.getKanbanActivityData({}, record[0]);
var widget = new KanbanActivity(self, 'activity_ids', fakeRecord, {});