From e1d1b049c12ab5c3096aaec858ecfecc87ceaad6 Mon Sep 17 00:00:00 2001 From: "Foram Katharotiya (OpenERP)" Date: Mon, 3 Dec 2012 18:31:26 +0530 Subject: [PATCH] [IMP] remove _get_subscription_data method bzr revid: fka@tinyerp.com-20121203130126-1ofjqy0w459q58p1 --- addons/crm/crm_lead.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/addons/crm/crm_lead.py b/addons/crm/crm_lead.py index cb9d5119317..430ea65c58d 100644 --- a/addons/crm/crm_lead.py +++ b/addons/crm/crm_lead.py @@ -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: