[IMP]if record in oppertunity type subtype convert opprtunity not shown
bzr revid: fka@tinyerp.com-20121123125338-x6cpm3gs0a3u90vx
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user