diff --git a/addons/crm/crm_lead_view.xml b/addons/crm/crm_lead_view.xml index ba16854c489..e53a5f68bbe 100644 --- a/addons/crm/crm_lead_view.xml +++ b/addons/crm/crm_lead_view.xml @@ -11,7 +11,7 @@ + string="Lead" domain="[('section_ids', '=', section_id)]"/> diff --git a/addons/crm_claim/crm_claim.py b/addons/crm_claim/crm_claim.py index c5755085216..72170a70b15 100644 --- a/addons/crm_claim/crm_claim.py +++ b/addons/crm_claim/crm_claim.py @@ -73,7 +73,7 @@ class crm_claim(crm.crm_case, osv.osv): 'email_cc': fields.text('Watchers Emails', size=252, help="These email addresses will be added to the CC field of all inbound and outbound emails for this record before being sent. Separate multiple email addresses with a comma"), 'email_from': fields.char('Email', size=128, help="These people will receive email."), 'partner_phone': fields.char('Phone', size=32), - 'stage_id': fields.many2one ('crm.case.stage', 'Stage', domain="[('type','=','claim')]"), + 'stage_id': fields.many2one ('crm.case.stage', 'Stage', domain="[('section_ids','=',section_id)]"), 'cause': fields.text('Root Cause'), 'state': fields.selection(crm.AVAILABLE_STATES, 'State', size=16, readonly=True, help='The state is set to \'Draft\', when a case is created.\ @@ -274,20 +274,4 @@ class res_partner(osv.osv): } res_partner() -class crm_stage_claim(osv.osv): - - def _get_type_value(self, cr, user, context): - list = super(crm_stage_claim, self)._get_type_value(cr, user, context) - list.append(('claim','Claim')) - return list - - _inherit = "crm.case.stage" - _columns = { - 'type': fields.selection(_get_type_value, 'Type'), - } - - -crm_stage_claim() - - # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/crm_claim/crm_claim_view.xml b/addons/crm_claim/crm_claim_view.xml index 842ede252df..8528653d550 100644 --- a/addons/crm_claim/crm_claim_view.xml +++ b/addons/crm_claim/crm_claim_view.xml @@ -32,7 +32,7 @@ + string="Claim" domain="[('section_ids', '=', section_id)]"/> @@ -101,7 +101,7 @@ - +