[IMP] remove _get_subscription_data method

bzr revid: fka@tinyerp.com-20121203130126-1ofjqy0w459q58p1
This commit is contained in:
Foram Katharotiya (OpenERP) 2012-12-03 18:31:26 +05:30
parent ce923903b5
commit e1d1b049c1
1 changed files with 0 additions and 7 deletions

View File

@ -895,11 +895,4 @@ 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):
# 'Convert to Opprtunity' subtype can only show in lead form view.
res = super(crm_lead,self)._get_subscription_data(cr, uid, ids, name, args, context=context)
for leads in self.browse(cr, uid, ids,context=context):
if leads.type == 'opportunity':
del res[leads.id]['message_subtype_data']['Convert to Opportunity']
return res
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: