diff --git a/addons/crm/crm.py b/addons/crm/crm.py index 76ac424f1e0..6631413033d 100644 --- a/addons/crm/crm.py +++ b/addons/crm/crm.py @@ -538,7 +538,7 @@ class crm_case_section(osv.osv): 'resource_calendar_id': fields.many2one('resource.calendar', "Resource's Calendar"), 'note': fields.text('Description'), 'working_hours': fields.float('Working Hours', digits=(16,2 )), - 'stage_ids':fields.many2many('crm.case.stage', 'section_stage_rel', 'section_id', 'stage_id', 'Stages'), + 'stage_ids': fields.many2many('crm.case.stage', 'section_stage_rel', 'section_id', 'stage_id', 'Stages'), } _defaults = { @@ -628,6 +628,14 @@ class crm_case_categ(osv.osv): crm_case_categ() +class crm_case_stage(osv.osv): + _inherit = "crm.case.stage" + _columns = { + 'section_ids':fields.many2many('crm.case.section', 'section_stage_rel', 'stage_id', 'section_id', 'Sections'), + } +crm_case_stage() + + class crm_case_resource_type(osv.osv): """ Resource Type of case """ _name = "crm.case.resource.type" diff --git a/addons/crm/crm_lead_view.xml b/addons/crm/crm_lead_view.xml index fc7a7dfdb73..702cddeaf16 100644 --- a/addons/crm/crm_lead_view.xml +++ b/addons/crm/crm_lead_view.xml @@ -55,7 +55,7 @@ - +