[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
This commit is contained in:
Denis Ledoux
2015-11-02 11:57:28 +01:00
parent 5ba54082e6
commit b7c1a9b288
+1 -1
View File
@@ -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: