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 b122cc6b9e9..5a58af0c3b3 100644 --- a/addons/crm_hr/crm_hr.py +++ b/addons/crm_hr/crm_hr.py @@ -22,24 +22,24 @@ 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 = { + _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')]"), + 'priority': fields.selection(crm.AVAILABLE_PRIORITIES, 'Priority'), + '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 (%)'), + 'probability': fields.float('Probability (%)'), 'partner_name': fields.char("Employee's Name", size=64), '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')]"), + 'partner_mobile': fields.char('Mobile', size=32), + '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), @@ -49,7 +49,8 @@ class crm_job(osv.osv): 'som': fields.many2one('res.partner.som', 'State of Mind', help="The minds states allow to define a value scale which represents" \ "the partner mentality in relation to our services.The scale has" \ "to be created with a factor for each level from 0 (Very dissatisfied) to 10 (Extremely satisfied)."), - 'phonecall_id':fields.many2one ('crm.phonecall', 'Phonecall'), + 'phonecall_id':fields.many2one ('crm.phonecall', 'Phonecall'), + '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..0844536a16e 100644 --- a/addons/crm_hr/crm_hr_menu.xml +++ b/addons/crm_hr/crm_hr_menu.xml @@ -1,15 +1,15 @@ - + ######################## JOB OPPORTUNITIES (menu) ########################### - Jobs Requests - crm.job - tree,calendar,form,graph + Applicants + crm.applicant + tree,form,graph - + @@ -18,12 +18,6 @@ - - - calendar - - - form @@ -39,16 +33,16 @@ + parent="base.menu_hr"/>--> + id="base.menu_crm_case_job_req_main" + parent="base.menu_hr"/> - + diff --git a/addons/crm_hr/crm_hr_view.xml b/addons/crm_hr/crm_hr_view.xml index 9771a25309c..bb3ea95acdc 100644 --- a/addons/crm_hr/crm_hr_view.xml +++ b/addons/crm_hr/crm_hr_view.xml @@ -1,29 +1,29 @@ - + # ------------------------------------------------------ # Job Categories # ------------------------------------------------------ - Job Categories + Applicant Categories crm.case.categ form - - [('object_id.model', '=', 'crm.claim')] - {'object_id':'crm.job'} + + [('object_id.model', '=', 'crm.applicant')] + {'object_id':'crm.applicant'} - # ------------------------------------------------------ + # ------------------------------------------------------ # Stage - # ------------------------------------------------------ + # ------------------------------------------------------ - Job Stages + Applicant Stages crm.case.stage form - [('object_id.model', '=', 'crm.claim')] - {'object_id':'crm.job'} + [('object_id.model', '=', 'crm.applicant')] + {'object_id':'crm.applicant'} # ------------------------------------------------------ @@ -31,13 +31,14 @@ # ------------------------------------------------------ - CRM - Jobs Requests Tree - crm.job + Jobs - Recruitment Tree + crm.applicant tree + @@ -48,55 +49,48 @@