[IMP]: change state for that improve method stage_change

bzr revid: ksa@tinyerp.co.in-20110817123220-uyv6wfjh51tcdkjw
This commit is contained in:
ksa (Open ERP) 2011-08-17 18:02:20 +05:30
parent 568b5315e1
commit d7746c8403
1 changed files with 1 additions and 4 deletions

View File

@ -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)