diff --git a/addons/account/board_account_view.xml b/addons/account/board_account_view.xml index 630c551c5ca..563c3f5fc6c 100644 --- a/addons/account/board_account_view.xml +++ b/addons/account/board_account_view.xml @@ -29,7 +29,6 @@
- diff --git a/addons/board/__openerp__.py b/addons/board/__openerp__.py index f07878717fd..2690012f3b4 100644 --- a/addons/board/__openerp__.py +++ b/addons/board/__openerp__.py @@ -28,9 +28,7 @@ Lets the user create a custom dashboard. ======================================== -This module also creates the Administration Dashboard. - -The user can also publish notes. +Allows users to create custom dashboard. """, 'author': 'OpenERP SA', 'depends': ['base'], diff --git a/addons/crm/board_crm_view.xml b/addons/crm/board_crm_view.xml index 16ed1e4c5ad..d80183b80c9 100644 --- a/addons/crm/board_crm_view.xml +++ b/addons/crm/board_crm_view.xml @@ -2,22 +2,6 @@ - - My Opportunities - crm.lead - tree - [('user_id','=',uid),('type', '=', 'opportunity'),('state','not in',('cancel','done'))] - - - - - New Leads - crm.lead - tree - [('user_id','=',uid),('state','=','draft'),('type','=','lead')] - - - Opportunities By Stage - Graph crm.lead.report @@ -70,11 +54,9 @@ - - + - diff --git a/addons/crm/crm_lead.py b/addons/crm/crm_lead.py index 881c0ace3cc..808b66557ec 100644 --- a/addons/crm/crm_lead.py +++ b/addons/crm/crm_lead.py @@ -98,7 +98,12 @@ class crm_lead(base_stage, osv.osv): result = stage_obj.name_get(cr, access_rights_uid, stage_ids, context=context) # restore order of the search result.sort(lambda x,y: cmp(stage_ids.index(x[0]), stage_ids.index(y[0]))) - return result + + fold = {} + for stage in stage_obj.browse(cr, access_rights_uid, stage_ids, context=context): + fold[stage.id] = stage.fold or False + + return result, fold _group_by_full = { 'stage_id': _read_group_stage_ids @@ -200,7 +205,7 @@ class crm_lead(base_stage, osv.osv): 'priority': fields.selection(crm.AVAILABLE_PRIORITIES, 'Priority', select=True), 'date_closed': fields.datetime('Closed', readonly=True), 'stage_id': fields.many2one('crm.case.stage', 'Stage', - domain="['&', '|', ('section_ids', '=', section_id), ('case_default', '=', True), '|', ('type', '=', type), ('type', '=', 'both')]"), + domain="['&', ('fold', '=', False), '&', '|', ('section_ids', '=', section_id), ('case_default', '=', True), '|', ('type', '=', type), ('type', '=', 'both')]"), 'user_id': fields.many2one('res.users', 'Salesperson'), 'referred': fields.char('Referred By', size=64), 'date_open': fields.datetime('Opened', readonly=True), diff --git a/addons/crm/crm_lead_data.xml b/addons/crm/crm_lead_data.xml index 04f91933f66..f734a839ff4 100644 --- a/addons/crm/crm_lead_data.xml +++ b/addons/crm/crm_lead_data.xml @@ -55,7 +55,7 @@ Dead - + cancel diff --git a/addons/crm/crm_lead_view.xml b/addons/crm/crm_lead_view.xml index f763f0a598a..e57fcff680c 100644 --- a/addons/crm/crm_lead_view.xml +++ b/addons/crm/crm_lead_view.xml @@ -257,7 +257,7 @@ - + @@ -382,7 +382,6 @@ - @@ -511,7 +510,7 @@ - + @@ -595,7 +594,6 @@ - diff --git a/addons/crm/report/crm_lead_report_view.xml b/addons/crm/report/crm_lead_report_view.xml index 4283dd8fb3c..35ed9411215 100644 --- a/addons/crm/report/crm_lead_report_view.xml +++ b/addons/crm/report/crm_lead_report_view.xml @@ -105,21 +105,11 @@ - - - - - - - - - - diff --git a/addons/event/board_association_view.xml b/addons/event/board_association_view.xml index b38a78afac9..4f4fbd05109 100644 --- a/addons/event/board_association_view.xml +++ b/addons/event/board_association_view.xml @@ -50,7 +50,6 @@ - diff --git a/addons/hr_recruitment/hr_recruitment.py b/addons/hr_recruitment/hr_recruitment.py index 82f2c9c3a21..3401670d6eb 100644 --- a/addons/hr_recruitment/hr_recruitment.py +++ b/addons/hr_recruitment/hr_recruitment.py @@ -137,7 +137,11 @@ class hr_applicant(base_stage, osv.Model): result = stage_obj.name_get(cr, access_rights_uid, stage_ids, context=context) # restore order of the search result.sort(lambda x,y: cmp(stage_ids.index(x[0]), stage_ids.index(y[0]))) - return result + + fold = {} + for stage in stage_obj.browse(cr, access_rights_uid, stage_ids, context=context): + fold[stage.id] = stage.fold or False + return result, fold def _compute_day(self, cr, uid, ids, fields, args, context=None): """ @@ -182,7 +186,7 @@ class hr_applicant(base_stage, osv.Model): 'create_date': fields.datetime('Creation Date', readonly=True, select=True), 'write_date': fields.datetime('Update Date', readonly=True), 'stage_id': fields.many2one ('hr.recruitment.stage', 'Stage', - domain="['|', ('department_id', '=', department_id), ('department_id', '=', False)]"), + domain="['&', ('fold', '=', False), '|', ('department_id', '=', department_id), ('department_id', '=', False)]"), 'state': fields.related('stage_id', 'state', type="selection", store=True, selection=AVAILABLE_STATES, string="State", readonly=True, help='The state is set to \'Draft\', when a case is created.\ diff --git a/addons/hr_recruitment/hr_recruitment_view.xml b/addons/hr_recruitment/hr_recruitment_view.xml index cea3b1279ef..14457b64024 100644 --- a/addons/hr_recruitment/hr_recruitment_view.xml +++ b/addons/hr_recruitment/hr_recruitment_view.xml @@ -95,7 +95,7 @@ - + @@ -107,7 +107,7 @@