diff --git a/addons/crm_claim/crm_claim.py b/addons/crm_claim/crm_claim.py index 1e3ed2faad1..ac373325612 100644 --- a/addons/crm_claim/crm_claim.py +++ b/addons/crm_claim/crm_claim.py @@ -42,7 +42,6 @@ class crm_claim_stage(osv.osv): 'sequence': fields.integer('Sequence', help="Used to order stages. Lower is better."), 'section_ids':fields.many2many('crm.case.section', 'section_claim_stage_rel', 'stage_id', 'section_id', string='Sections', help="Link between stages and sales teams. When set, this limitate the current stage to the selected sales teams."), - 'state': fields.selection(crm.AVAILABLE_STATES, 'Status', required=True, help="The related status for the stage. The status of your document will automatically change regarding the selected stage. For example, if a stage is related to the status 'Close', when your document reaches this stage, it will be automatically have the 'closed' status."), 'case_default': fields.boolean('Common to All Teams', help="If you check this field, this stage will be proposed by default on each sales team. It will not assign this stage to existing teams."), 'fold': fields.boolean('Hide in Views when Empty', @@ -51,7 +50,6 @@ class crm_claim_stage(osv.osv): _defaults = { 'sequence': lambda *args: 1, - 'state': 'draft', 'fold': False, } @@ -105,13 +103,6 @@ class crm_claim(osv.osv): 'stage_id': fields.many2one ('crm.claim.stage', 'Stage', track_visibility='onchange', domain="['|', ('section_ids', '=', section_id), ('case_default', '=', True)]"), 'cause': fields.text('Root Cause'), - 'state': fields.related('stage_id', 'state', type="selection", store=True, - selection=crm.AVAILABLE_STATES, string="Status", readonly=True, - help='The status is set to \'Draft\', when a case is created.\ - If the case is in progress the status is set to \'Open\'.\ - When the case is over, the status is set to \'Done\'.\ - If the case needs to be reviewed then the status is \ - set to \'Pending\'.'), } _defaults = { diff --git a/addons/crm_claim/crm_claim_data.xml b/addons/crm_claim/crm_claim_data.xml index ed0558f72e9..7595b1b68f7 100644 --- a/addons/crm_claim/crm_claim_data.xml +++ b/addons/crm_claim/crm_claim_data.xml @@ -44,25 +44,21 @@ New - draft - 26 + 1 In Progress - open 27 Settled - done 28 Rejected - cancel 29 diff --git a/addons/crm_claim/crm_claim_view.xml b/addons/crm_claim/crm_claim_view.xml index 28d0f7c731c..5b7e924c205 100644 --- a/addons/crm_claim/crm_claim_view.xml +++ b/addons/crm_claim/crm_claim_view.xml @@ -38,7 +38,6 @@ - @@ -51,7 +50,6 @@ - @@ -79,7 +77,7 @@ CRM - Claims Tree crm.claim - + @@ -90,7 +88,6 @@ - @@ -113,7 +110,6 @@ - @@ -191,9 +187,6 @@ - - - @@ -203,7 +196,6 @@ - diff --git a/addons/crm_claim/report/crm_claim_report.py b/addons/crm_claim/report/crm_claim_report.py index 2ed87505d9c..d389f690fb4 100644 --- a/addons/crm_claim/report/crm_claim_report.py +++ b/addons/crm_claim/report/crm_claim_report.py @@ -22,14 +22,6 @@ from openerp.osv import fields,osv from openerp import tools -AVAILABLE_STATES = [ - ('draft','Draft'), - ('open','Open'), - ('cancel', 'Cancelled'), - ('done', 'Closed'), - ('pending','Pending') -] - AVAILABLE_PRIORITIES = [ ('5', 'Lowest'), ('4', 'Low'), @@ -51,7 +43,6 @@ class crm_claim_report(osv.osv): 'user_id':fields.many2one('res.users', 'User', readonly=True), 'section_id':fields.many2one('crm.case.section', 'Section', readonly=True), 'nbr': fields.integer('# of Cases', readonly=True), - 'state': fields.selection(AVAILABLE_STATES, 'Status', size=16, readonly=True), 'month':fields.selection([('01', 'January'), ('02', 'February'), \ ('03', 'March'), ('04', 'April'),\ ('05', 'May'), ('06', 'June'), \ @@ -92,7 +83,6 @@ class crm_claim_report(osv.osv): to_char(c.date, 'YYYY-MM-DD') as day, to_char(c.date_closed, 'YYYY-MM-DD') as date_closed, to_char(c.date_deadline, 'YYYY-MM-DD') as date_deadline, - c.state, c.user_id, c.stage_id, c.section_id, @@ -109,7 +99,7 @@ class crm_claim_report(osv.osv): from crm_claim c group by to_char(c.date, 'YYYY'), to_char(c.date, 'MM'),to_char(c.date, 'YYYY-MM-DD'),\ - c.state, c.user_id,c.section_id, c.stage_id,\ + c.user_id,c.section_id, c.stage_id,\ c.categ_id,c.partner_id,c.company_id,c.create_date, c.priority,c.type_action,c.date_deadline,c.date_closed,c.id )""") diff --git a/addons/crm_claim/report/crm_claim_report_view.xml b/addons/crm_claim/report/crm_claim_report_view.xml index bae02ef8c0c..2d0787ca527 100644 --- a/addons/crm_claim/report/crm_claim_report_view.xml +++ b/addons/crm_claim/report/crm_claim_report_view.xml @@ -21,7 +21,6 @@ - @@ -37,7 +36,6 @@ crm.claim.report - @@ -51,10 +49,6 @@ crm.claim.report - - - - @@ -73,8 +67,6 @@ - - @@ -84,7 +76,6 @@ - diff --git a/addons/crm_helpdesk/crm_helpdesk.py b/addons/crm_helpdesk/crm_helpdesk.py index ea58016b4c1..deab9f19a20 100644 --- a/addons/crm_helpdesk/crm_helpdesk.py +++ b/addons/crm_helpdesk/crm_helpdesk.py @@ -26,6 +26,14 @@ from openerp import tools from openerp.tools.translate import _ from openerp.tools import html2plaintext +AVAILABLE_STATES = [ + ('draft', 'New'), + ('cancel', 'Cancelled'), + ('open', 'In Progress'), + ('pending', 'Pending'), + ('done', 'Closed') +] + class crm_helpdesk(base_state, osv.osv): """ Helpdesk Cases """ @@ -65,7 +73,7 @@ class crm_helpdesk(base_state, osv.osv): domain="['|',('section_id','=',False),('section_id','=',section_id),\ ('object_id.model', '=', 'crm.helpdesk')]"), 'duration': fields.float('Duration', states={'done': [('readonly', True)]}), - 'state': fields.selection(crm.AVAILABLE_STATES, 'Status', size=16, readonly=True, + 'state': fields.selection(AVAILABLE_STATES, 'Status', size=16, readonly=True, help='The status is set to \'Draft\', when a case is created.\ \nIf the case is in progress the status is set to \'Open\'.\ \nWhen the case is over, the status is set to \'Done\'.\ diff --git a/addons/crm_partner_assign/crm_lead_view.xml b/addons/crm_partner_assign/crm_lead_view.xml index 5c14680ee78..3b253b1c3d4 100644 --- a/addons/crm_partner_assign/crm_lead_view.xml +++ b/addons/crm_partner_assign/crm_lead_view.xml @@ -49,7 +49,8 @@ - + + @@ -60,6 +61,9 @@ + + diff --git a/addons/crm_partner_assign/crm_portal_view.xml b/addons/crm_partner_assign/crm_portal_view.xml index a8d342ebb94..ab4cf8868db 100644 --- a/addons/crm_partner_assign/crm_portal_view.xml +++ b/addons/crm_partner_assign/crm_portal_view.xml @@ -6,7 +6,7 @@ crm.lead - + @@ -18,7 +18,6 @@ -