From 6aba1ac0c32cc50de03d6585955209c5fc01483d Mon Sep 17 00:00:00 2001 From: Nicolas Lempereur Date: Wed, 15 Apr 2015 14:07:25 +0200 Subject: [PATCH] [FIX] crm: lead to opportunity When converting a lead to an opportunity, there is a difference in context than when going to an opportunity via the interface. This leads to a difference when displaying a kanban view. This commit adds what is needed in the context. opw-632640 --- addons/crm/crm_lead.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/crm/crm_lead.py b/addons/crm/crm_lead.py index 5bc185550ce..222817ed179 100644 --- a/addons/crm/crm_lead.py +++ b/addons/crm/crm_lead.py @@ -883,6 +883,7 @@ class crm_lead(format_address, osv.osv): (tree_view or False, 'tree'), (False, 'kanban'), (False, 'calendar'), (False, 'graph')], 'type': 'ir.actions.act_window', + 'context': {'default_type': 'opportunity'} } def redirect_lead_view(self, cr, uid, lead_id, context=None):