From 6756f882a204fafe6ad2728a3ca23be58d782403 Mon Sep 17 00:00:00 2001 From: "Vir (Open ERP)" Date: Wed, 17 Feb 2010 17:07:47 +0530 Subject: [PATCH] [MOD] crm_hr : changes in applicant views, changed from crm.job to crm.applicant. bzr revid: vir@tinyerp.com-20100217113747-9xjpghe5t4xmxbl3 --- .../crm_hr/board_crm_hr_statistical_view.xml | 26 ++++---- addons/crm_hr/crm_hr.py | 14 ++--- addons/crm_hr/crm_hr_data.xml | 22 +++---- addons/crm_hr/crm_hr_demo.xml | 22 +++---- addons/crm_hr/crm_hr_menu.xml | 6 +- addons/crm_hr/crm_hr_view.xml | 43 ++++++------- addons/crm_hr/crm_hr_wizard.xml | 20 +++--- addons/crm_hr/report/report_crm_hr.py | 62 +++++++++---------- addons/crm_hr/report_crm_hr_view.xml | 50 +++++++-------- addons/crm_hr/security/ir.model.access.csv | 8 +-- .../crm_vertical/crm_jobs_vertical_view.xml | 4 +- 11 files changed, 135 insertions(+), 142 deletions(-) diff --git a/addons/crm_hr/board_crm_hr_statistical_view.xml b/addons/crm_hr/board_crm_hr_statistical_view.xml index c70ac559a5e..80dc214f30d 100644 --- a/addons/crm_hr/board_crm_hr_statistical_view.xml +++ b/addons/crm_hr/board_crm_hr_statistical_view.xml @@ -1,27 +1,27 @@ - - report.crm.job.categ.graph - report.crm.job.categ + + report.crm.applicant.categ.graph + report.crm.applicant.categ graph - + - - - + view_id="view_crm_applicant_categ_graph" + id="act_applicants_categ"/> + CRM - Statistical Dashboard Form board.board @@ -32,8 +32,8 @@ @@ -41,4 +41,4 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/addons/crm_hr/crm_hr.py b/addons/crm_hr/crm_hr.py index 2abed71561f..5a58af0c3b3 100644 --- a/addons/crm_hr/crm_hr.py +++ b/addons/crm_hr/crm_hr.py @@ -22,15 +22,15 @@ from osv import fields,osv,orm from crm import crm -class crm_job(osv.osv): - _name = "crm.job" - _description = "Job Cases" +class crm_applicant(osv.osv): + _name = "crm.applicant" + _description = "Applicant Cases" _order = "id desc" _inherit ='crm.case' _columns = { 'date_closed': fields.datetime('Closed', readonly=True), 'priority': fields.selection(crm.AVAILABLE_PRIORITIES, 'Priority'), - 'categ_id': fields.many2one('crm.case.categ', 'Category', domain="[('section_id','=',section_id),('object_id.model', '=', 'crm.job')]"), + 'categ_id': fields.many2one('crm.case.categ', 'Category', domain="[('section_id','=',section_id),('object_id.model', '=', 'crm.applicant')]"), 'planned_revenue': fields.float('Planned Revenue'), 'planned_cost': fields.float('Planned Costs'), 'probability': fields.float('Probability (%)'), @@ -38,8 +38,8 @@ class crm_job(osv.osv): 'partner_name2': fields.char('Employee Email', size=64), 'partner_phone': fields.char('Phone', size=32), 'partner_mobile': fields.char('Mobile', size=32), - 'stage_id': fields.many2one ('crm.case.stage', 'Stage', domain="[('section_id','=',section_id),('object_id.model', '=', 'crm.job')]"), - 'type_id': fields.many2one('crm.case.resource.type', 'Type Name', domain="[('section_id','=',section_id),('object_id.model', '=', 'crm.job')]"), + 'stage_id': fields.many2one ('crm.case.stage', 'Stage', domain="[('section_id','=',section_id),('object_id.model', '=', 'crm.applicant')]"), + 'type_id': fields.many2one('crm.case.resource.type', 'Type Name', domain="[('section_id','=',section_id),('object_id.model', '=', 'crm.applicant')]"), 'duration': fields.float('Duration'), 'case_id': fields.many2one('crm.case', 'Related Case'), 'ref' : fields.reference('Reference', selection=crm._links_get, size=128), @@ -53,4 +53,4 @@ class crm_job(osv.osv): 'department_id':fields.many2one('hr.department','Department'), } -crm_job() +crm_applicant() diff --git a/addons/crm_hr/crm_hr_data.xml b/addons/crm_hr/crm_hr_data.xml index 897434987a4..d52a35f5bae 100644 --- a/addons/crm_hr/crm_hr_data.xml +++ b/addons/crm_hr/crm_hr_data.xml @@ -8,13 +8,13 @@ Salesman - + Junior Developer - + @@ -22,17 +22,17 @@ Graduate - + Licenced - + > Bac +5 - + @@ -40,17 +40,17 @@ Initial Jobs Demand - + First Interview - + Second Interview - + Contract Proposed @@ -60,17 +60,17 @@ Contract Signed - + Refused by Employee - + Refused by Company - + diff --git a/addons/crm_hr/crm_hr_demo.xml b/addons/crm_hr/crm_hr_demo.xml index fee80a6c761..4ed75085a1a 100644 --- a/addons/crm_hr/crm_hr_demo.xml +++ b/addons/crm_hr/crm_hr_demo.xml @@ -1,12 +1,12 @@ - - + @@ -25,7 +25,7 @@ - + @@ -47,7 +47,7 @@ - + @@ -67,7 +67,7 @@ - + @@ -84,7 +84,7 @@ - + @@ -103,7 +103,7 @@ - + @@ -121,8 +121,8 @@ - - + + @@ -144,6 +144,6 @@ - + diff --git a/addons/crm_hr/crm_hr_menu.xml b/addons/crm_hr/crm_hr_menu.xml index dad579f8ef8..6b40ce9907d 100644 --- a/addons/crm_hr/crm_hr_menu.xml +++ b/addons/crm_hr/crm_hr_menu.xml @@ -5,11 +5,11 @@ ######################## JOB OPPORTUNITIES (menu) ########################### - Jobs Requests - crm.job + Applicants + crm.applicant tree,calendar,form,graph - + diff --git a/addons/crm_hr/crm_hr_view.xml b/addons/crm_hr/crm_hr_view.xml index 41f31883d18..8baecc451d0 100644 --- a/addons/crm_hr/crm_hr_view.xml +++ b/addons/crm_hr/crm_hr_view.xml @@ -32,7 +32,7 @@ CRM - Jobs Requests Tree - crm.job + crm.applicant tree @@ -58,7 +58,7 @@ CRM - Jobs Requests Form - crm.job + crm.applicant form
@@ -66,38 +66,31 @@ +