From aeda5d584f8fb531aa886533d7e8f13b69385c7c Mon Sep 17 00:00:00 2001 From: Ravi Gadhia Date: Mon, 21 Nov 2016 11:33:44 +0100 Subject: [PATCH] [IMP] hr_recruitment: add support of activities hr.applicant model now supports activities. Filters have been added to ease their management. --- addons/hr_recruitment/__manifest__.py | 4 +- .../data/hr_recruitment_demo.xml | 40 ++++---- .../hr_recruitment/models/hr_recruitment.py | 4 +- .../views/hr_recruitment_views.xml | 93 +++++++++++++------ 4 files changed, 93 insertions(+), 48 deletions(-) diff --git a/addons/hr_recruitment/__manifest__.py b/addons/hr_recruitment/__manifest__.py index a12cc06ec17..4e9551b1d69 100644 --- a/addons/hr_recruitment/__manifest__.py +++ b/addons/hr_recruitment/__manifest__.py @@ -39,7 +39,9 @@ You can define the different phases of interviews and easily rate the applicant 'views/hr_job_views.xml', 'views/tour_views.xml', ], - 'demo': ['data/hr_recruitment_demo.xml'], + 'demo': [ + 'data/hr_recruitment_demo.xml', + ], 'test': ['test/recruitment_process.yml'], 'installable': True, 'auto_install': False, diff --git a/addons/hr_recruitment/data/hr_recruitment_demo.xml b/addons/hr_recruitment/data/hr_recruitment_demo.xml index 81bfdecb589..1a15601141f 100644 --- a/addons/hr_recruitment/data/hr_recruitment_demo.xml +++ b/addons/hr_recruitment/data/hr_recruitment_demo.xml @@ -58,8 +58,6 @@ Enrique Jones 9963214587 - - Send mail regarding our interview Trainee - MCA @@ -73,8 +71,6 @@ 9988774455 6633225 - - Call to define real needs about training Fresher @@ -87,8 +83,6 @@ Jose 999666735 - - Send mail regarding our interview Marketing Job @@ -99,8 +93,6 @@ John Bruno - - Call to define real needs about training More than 5 yrs Experience in PHP @@ -111,8 +103,6 @@ Sandra Elvis - - Send mail regarding our interview Finance Manager @@ -125,8 +115,6 @@ David Armstrong 33968745 - - Send mail regarding our interview Trainee - MCA @@ -138,8 +126,6 @@ 9898745745 6630125 - - Send mail regarding our interview Programmer @@ -152,8 +138,6 @@ 6630125 11000.0 - - Send mail regarding our interview Advertisement @@ -165,8 +149,6 @@ 9988774455 11000.0 - - Send mail regarding our interview @@ -235,5 +217,27 @@ + + + + + + Send mail regarding our interview + + + + + + + Call to define real needs about training + + + + + + + Call to define real needs about training + + diff --git a/addons/hr_recruitment/models/hr_recruitment.py b/addons/hr_recruitment/models/hr_recruitment.py index 739107fe569..aaf9601fa12 100644 --- a/addons/hr_recruitment/models/hr_recruitment.py +++ b/addons/hr_recruitment/models/hr_recruitment.py @@ -88,7 +88,7 @@ class Applicant(models.Model): _name = "hr.applicant" _description = "Applicant" _order = "priority desc, id desc" - _inherit = ['mail.thread', 'utm.mixin'] + _inherit = ['mail.thread', 'mail.activity.mixin', 'utm.mixin'] _mail_mass_mailing = _('Applicants') def _default_stage_id(self): @@ -135,8 +135,6 @@ class Applicant(models.Model): date_closed = fields.Datetime("Closed", readonly=True, index=True) date_open = fields.Datetime("Assigned", readonly=True, index=True) date_last_stage_update = fields.Datetime("Last Stage Update", index=True, default=fields.Datetime.now) - date_action = fields.Date("Next Action Date") - title_action = fields.Char("Next Action", size=64) priority = fields.Selection(AVAILABLE_PRIORITIES, "Appreciation", default='0') job_id = fields.Many2one('hr.job', "Applied Job") salary_proposed_extra = fields.Char("Proposed Salary Extra", help="Salary Proposed by the Organisation, extra advantages") diff --git a/addons/hr_recruitment/views/hr_recruitment_views.xml b/addons/hr_recruitment/views/hr_recruitment_views.xml index 7a27d200c96..20748105c5c 100644 --- a/addons/hr_recruitment/views/hr_recruitment_views.xml +++ b/addons/hr_recruitment/views/hr_recruitment_views.xml @@ -36,8 +36,6 @@ - - @@ -49,6 +47,21 @@ + + hr.applicant.view.tree.activity + hr.applicant + + + + + + + + + + + + Jobs - Recruitment Form hr.applicant @@ -113,11 +126,6 @@ - - Jobs - Recruitment Search + hr.applicant.view.search hr.applicant - + - - - @@ -196,6 +201,17 @@ + + + + @@ -211,17 +227,15 @@ - Hr Applicants Calendar hr.applicant - + - + @@ -240,12 +254,13 @@ - + +
    @@ -273,13 +288,12 @@

    Mobile:
    - oe_kanban_text_red - - : -
    +
    + +
    -
    +
    @@ -316,6 +330,22 @@

    + + + My Next Activities + hr.applicant + form + tree,form,kanban,calendar + + {'search_default_activities_my': 1} + [('activity_date_deadline', '!=', False)] + +

    + Currently there are not any activity scheduled. +

    +
    +
    + Jobs Sources hr.recruitment.source @@ -499,7 +529,7 @@ process and follow up all operations: meetings, interviews, etc.

    Applicants and their attached CV are created automatically when an email is sent. - If you install the document management modules, all resumes are indexed automatically, + If you install the document management modules, all resumes are indexed automatically, so that you can easily search through their content.

    @@ -526,7 +556,7 @@
    - + graph @@ -549,7 +579,18 @@ + id="menu_crm_case_categ0_act_job" sequence="2"/> + + + +