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