From d7746c840347acf7c187adedf4f46f2b59afc6d3 Mon Sep 17 00:00:00 2001 From: "ksa (Open ERP)" Date: Wed, 17 Aug 2011 18:02:20 +0530 Subject: [PATCH] [IMP]: change state for that improve method stage_change bzr revid: ksa@tinyerp.co.in-20110817123220-uyv6wfjh51tcdkjw --- addons/crm/crm.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/addons/crm/crm.py b/addons/crm/crm.py index 32f97112859..fb2eef3a3d7 100644 --- a/addons/crm/crm.py +++ b/addons/crm/crm.py @@ -327,7 +327,6 @@ class crm_case(crm_base): context = {} stage_pool = self.pool.get('crm.case.stage') - stage_type = context and context.get('stage_type','') current_seq = False next_stage_id = False @@ -336,9 +335,7 @@ class crm_case(crm_base): next_stage = False value = {} if case.section_id.id : - domain = [('type', '=', stage_type),('section_ids', '=', case.section_id.id)] - else : - domain = [('type', '=', stage_type)] + domain = [('section_ids', '=', case.section_id.id)] stages = stage_pool.search(cr, uid, domain, order=order)