From b7c1a9b288c951f00032acf5c5b252bae9963ecc Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Mon, 2 Nov 2015 11:55:42 +0100 Subject: [PATCH] [FIX] crm: Your pipeline must show opportunities only. When using the menu Sales > Your pipeline, The domain `[('type','=','opportunity')]` wasn't enforced, and leads could therefore be displayed with the form of an opporunity. This is already the case when using the "Pipeline" button in the teams of the CRM Dashboard. opw-653417 --- addons/crm/sales_team.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/crm/sales_team.py b/addons/crm/sales_team.py index ec37b001e5d..1ae14e831e8 100644 --- a/addons/crm/sales_team.py +++ b/addons/crm/sales_team.py @@ -122,7 +122,7 @@ class crm_team(osv.Model): def action_your_pipeline(self, cr, uid, context=None): IrModelData = self.pool['ir.model.data'] - action = IrModelData.xmlid_to_object(cr, uid, 'crm.crm_lead_opportunities_tree_view').read(['name', 'help', 'res_model', 'target', 'context', 'type', 'search_view_id']) + action = IrModelData.xmlid_to_object(cr, uid, 'crm.crm_lead_opportunities_tree_view').read(['name', 'help', 'res_model', 'target', 'domain', 'context', 'type', 'search_view_id']) if not action: action = {} else: