diff --git a/addons/crm/crm_phonecall.py b/addons/crm/crm_phonecall.py index bd1cb8e4647..1c0f4e1df4a 100644 --- a/addons/crm/crm_phonecall.py +++ b/addons/crm/crm_phonecall.py @@ -21,6 +21,7 @@ from osv import fields, osv import crm +import time class crm_phonecall(osv.osv): _name = "crm.phonecall" diff --git a/addons/hr_recruitment/__init__.py b/addons/hr_recruitment/__init__.py new file mode 100644 index 00000000000..90e97e4a2e8 --- /dev/null +++ b/addons/hr_recruitment/__init__.py @@ -0,0 +1,27 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2004-2009 Tiny SPRL (). All Rights Reserved +# $Id$ +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +############################################################################## + + +import hr_hr +import report +import wizard +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/hr_recruitment/__terp__.py b/addons/hr_recruitment/__terp__.py new file mode 100644 index 00000000000..48abcf36357 --- /dev/null +++ b/addons/hr_recruitment/__terp__.py @@ -0,0 +1,51 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2004-2009 Tiny SPRL (). All Rights Reserved +# $Id$ +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +############################################################################## + +{ + 'name': 'HR - Recruitement', + 'version': '1.0', + 'category': 'Generic Modules/HR', + 'description': """ +Manages job position and recruitement process. + """, + 'author': 'Tiny', + 'website': 'http://www.openerp.com', + 'depends': ['hr','survey','crm'], + 'init_xml': [ + 'hr_hr_data.xml' + ], + 'update_xml': [ + 'hr_hr_wizard.xml', + 'hr_hr_view.xml', + 'hr_hr_menu.xml', + 'report_hr_hr_view.xml', + 'security/hr_hr_security.xml', + 'security/ir.model.access.csv', + 'board_hr_hr_statistical_view.xml', + ], + 'demo_xml': [ + 'hr_hr_demo.xml' + ], + 'installable': True, + 'active': False, +} +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/hr_recruitment/board_hr_hr_statistical_view.xml b/addons/hr_recruitment/board_hr_hr_statistical_view.xml index c72a4d8112d..14710cf8f37 100644 --- a/addons/hr_recruitment/board_hr_hr_statistical_view.xml +++ b/addons/hr_recruitment/board_hr_hr_statistical_view.xml @@ -1,44 +1,6 @@ - - report.hr.applicant.categ.graph - report.hr.applicant.categ - graph - - - - - - - - - - - - hr - Statistical Dashboard Form - board.board - - form - -
- - - - - -
-
-
diff --git a/addons/hr_recruitment/hr_hr.py b/addons/hr_recruitment/hr_hr.py new file mode 100644 index 00000000000..9b7742b053a --- /dev/null +++ b/addons/hr_recruitment/hr_hr.py @@ -0,0 +1,62 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2004-2009 Tiny SPRL (). +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## + +from osv import fields,osv,orm + +AVAILABLE_STATES = [ + ('draft','New'), + ('open','In Progress'), + ('cancel', 'Refused'), + ('done', 'Hired'), + ('pending','Pending') +] + +AVAILABLE_PRIORITIES = [ + ('5','Not Good'), + ('4','On Average'), + ('3','Good'), + ('2','Very Good'), + ('1','Excellent') +] + + +class hr_applicant(osv.osv): + _name = "hr.applicant" + _description = "Applicant Cases" + _order = "id desc" + _inherit ='crm.case' + _columns = { + 'date_closed': fields.datetime('Closed', readonly=True), + 'date': fields.datetime('Date'), + 'priority': fields.selection(AVAILABLE_PRIORITIES, 'Appreciation'), + 'job_id': fields.many2one('hr.job', 'Applied Job'), + 'salary_proposed': fields.float('Proposed Salary'), + 'salary_expected': fields.float('Expected Salary'), + 'availability': fields.integer('Availability (Days)'), + 'partner_name': fields.char("Applicant's Name", 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', '=', 'hr.applicant')]"), + 'type_id': fields.many2one('crm.case.resource.type', 'Degree', domain="[('section_id','=',section_id),('object_id.model', '=', 'hr.applicant')]"), + 'department_id':fields.many2one('hr.department','Department'), + 'state': fields.selection(AVAILABLE_STATES, 'State', size=16, readonly=True), + } +hr_applicant() diff --git a/addons/hr_recruitment/hr_hr_data.xml b/addons/hr_recruitment/hr_hr_data.xml index 9e4e298a169..d430924e170 100644 --- a/addons/hr_recruitment/hr_hr_data.xml +++ b/addons/hr_recruitment/hr_hr_data.xml @@ -5,77 +5,63 @@ - + Salesman - - + Junior Developer - - + Graduate - - + Licenced - - + > Bac +5 - - + Initial Jobs Demand - - + First Interview - - + Second Interview - - + Contract Proposed - - + Contract Signed - - + Refused by Employee - - + Refused by Company - - - Job Survey @@ -230,14 +216,14 @@ 1 Male - + 1 Female - + @@ -269,49 +255,49 @@ 1 0 - 15 - + 1 16 - 20 - + 1 21 - 30 - + 1 31 - 40 - + 1 41 - 50 - + 1 51 - 60 - + 1 61 - 70 - + 1 71 + - + @@ -409,7 +395,7 @@ 1 Good pay - + @@ -417,7 +403,7 @@ 1 Getting on with colleagues - + @@ -425,7 +411,7 @@ 1 Office environment (décor, light, space etc) - + @@ -433,7 +419,7 @@ 1 Desk space - + @@ -441,7 +427,7 @@ 1 State of the art technology - + @@ -449,7 +435,7 @@ 1 Office location (proximity to home) - + @@ -457,7 +443,7 @@ 1 Good management/boss - + @@ -465,7 +451,7 @@ 1 Freebies such as tea, coffee and stationery - + @@ -473,7 +459,7 @@ 1 Perks such as free parking, gym passes etc - + @@ -481,7 +467,7 @@ 1 No out of hours working - + @@ -489,7 +475,7 @@ 1 Dress code - + @@ -497,7 +483,7 @@ 1 Regular meetings - + @@ -505,7 +491,7 @@ 1 Good social life (office nights out, good Christmas parties etc) - + diff --git a/addons/hr_recruitment/hr_hr_demo.xml b/addons/hr_recruitment/hr_hr_demo.xml index 776c4458d5d..0509afc5968 100644 --- a/addons/hr_recruitment/hr_hr_demo.xml +++ b/addons/hr_recruitment/hr_hr_demo.xml @@ -9,140 +9,133 @@ - + - + - - - - - + + + + - - - - + + + + - + - + - - + + - - - + + - - - + + + - + - + - + - - - - + + + - - - - + + + + - - + + - + - - - - + + + - - + + - + - + - - - - - + + + + - - - - + + + + - + - + - - - - - + + + + - - - - + + + + - + - + - - + + - - - + + - - - + + + - + diff --git a/addons/hr_recruitment/hr_hr_menu.xml b/addons/hr_recruitment/hr_hr_menu.xml index 97a8d1a414b..ba3278b3c66 100644 --- a/addons/hr_recruitment/hr_hr_menu.xml +++ b/addons/hr_recruitment/hr_hr_menu.xml @@ -4,45 +4,45 @@ ######################## JOB OPPORTUNITIES (menu) ########################### - + Applicants hr.applicant tree,form,graph - - + + tree - - + + form - - + + graph - - + + - + diff --git a/addons/hr_recruitment/hr_hr_view.xml b/addons/hr_recruitment/hr_hr_view.xml index c00c59c1c35..df9a0e841de 100644 --- a/addons/hr_recruitment/hr_hr_view.xml +++ b/addons/hr_recruitment/hr_hr_view.xml @@ -8,9 +8,9 @@ Applicant Categories - hr.case.categ + crm.case.categ form - + [('object_id.model', '=', 'hr.applicant')] {'object_id':'hr.applicant'} @@ -19,19 +19,19 @@ # ------------------------------------------------------ Applicant Stages - hr.case.stage + crm.case.stage form - + [('object_id.model', '=', 'hr.applicant')] {'object_id':'hr.applicant'} - + # ------------------------------------------------------ # Jobs # ------------------------------------------------------ - + Applicants hr.applicant tree @@ -60,7 +60,7 @@ - + Jobs - Recruitment Form hr.applicant form @@ -146,12 +146,12 @@