From cd38db8d30a47aa8c7e6961d2f634cfe5889bf39 Mon Sep 17 00:00:00 2001 From: "Foram Katharotiya (OpenERP)" Date: Fri, 23 Nov 2012 18:23:38 +0530 Subject: [PATCH] [IMP]if record in oppertunity type subtype convert opprtunity not shown bzr revid: fka@tinyerp.com-20121123125338-x6cpm3gs0a3u90vx --- addons/crm/crm_lead.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/addons/crm/crm_lead.py b/addons/crm/crm_lead.py index b72ac9ee5b4..753a92c62b0 100644 --- a/addons/crm/crm_lead.py +++ b/addons/crm/crm_lead.py @@ -891,4 +891,10 @@ class crm_lead(base_stage, format_address, osv.osv): return {'value':{'country_id':country_id}} return {} + def _get_subscription_data(self, cr, uid, ids, name, args, context=None): + res = super(crm_lead,self)._get_subscription_data(cr, uid, ids, name, args, context=context) + for subtype in self.browse(cr, uid, ids,context=context): + if subtype.type == 'opportunity': + del res[subtype.id]['message_subtype_data']['Convert to Opportunity'] + return res # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: