[IMP]if record in oppertunity type subtype convert opprtunity not shown

bzr revid: fka@tinyerp.com-20121123125338-x6cpm3gs0a3u90vx
This commit is contained in:
Foram Katharotiya (OpenERP)
2012-11-23 18:23:38 +05:30
parent f94f396d04
commit cd38db8d30
+6
View File
@@ -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: