diff --git a/addons/crm/crm.py b/addons/crm/crm.py index 2d371c3f865..0b6275598d2 100644 --- a/addons/crm/crm.py +++ b/addons/crm/crm.py @@ -219,11 +219,11 @@ class crm_case(object): if context is None: context = {} stage_pool = self.pool.get('crm.case.stage') + stage_type = context and context.get('stage_type','') current_seq = False next_stage_id = False for case in self.browse(cr, uid, ids, context=context): - stage_type = case.type next_stage = False value = {} if case.section_id.id :