From 55ae657239cb968d438056202ed2acee12b3fba2 Mon Sep 17 00:00:00 2001 From: Yannick Tivisse Date: Mon, 11 May 2015 16:56:04 +0200 Subject: [PATCH] [IMP] sales_team : Remove the lead escalation feature Conflicts: addons/crm/sales_team_view.xml addons/sales_team/sales_team.py addons/sales_team/sales_team.xml --- addons/crm/crm_lead.py | 14 -------------- addons/crm/crm_lead_view.xml | 5 ----- addons/crm/sales_team_view.xml | 4 ++-- addons/crm/test/crm_lead_cancel.yml | 10 ---------- addons/crm_helpdesk/crm_helpdesk.py | 6 ++++++ addons/sales_team/sales_team.py | 3 +++ addons/sales_team/sales_team.xml | 3 +++ 7 files changed, 14 insertions(+), 31 deletions(-) diff --git a/addons/crm/crm_lead.py b/addons/crm/crm_lead.py index e71a2e21a24..f2e5fc00ccd 100644 --- a/addons/crm/crm_lead.py +++ b/addons/crm/crm_lead.py @@ -381,20 +381,6 @@ class crm_lead(format_address, osv.osv): self.write(cr, uid, lead_ids, {'stage_id': stage_id}, context=context) return True - def case_escalate(self, cr, uid, ids, context=None): - """ Escalates case to parent level """ - for case in self.browse(cr, uid, ids, context=context): - data = {'active': True} - if case.team_id.parent_id: - data['team_id'] = case.team_id.parent_id.id - if case.team_id.parent_id.change_responsible: - if case.team_id.parent_id.user_id: - data['user_id'] = case.team_id.parent_id.user_id.id - else: - raise UserError(_("You are already at the top level of your sales-team category.\nTherefore you cannot escalate furthermore.")) - self.write(cr, uid, [case.id], data, context=context) - return True - def _merge_get_result_type(self, cr, uid, opps, context=None): """ Define the type of the result of the merge. If at least one of the diff --git a/addons/crm/crm_lead_view.xml b/addons/crm/crm_lead_view.xml index bf0258bcffe..88370b0965f 100644 --- a/addons/crm/crm_lead_view.xml +++ b/addons/crm/crm_lead_view.xml @@ -167,9 +167,6 @@