Skip to content

Commit

Permalink
[OU-ADD] hr_recruitment
Browse files Browse the repository at this point in the history
  • Loading branch information
robinkeunen committed Feb 28, 2024
1 parent 5402439 commit d5a49d0
Show file tree
Hide file tree
Showing 4 changed files with 92 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docsource/modules150-160.rst
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ Module coverage 15.0 -> 16.0
+-------------------------------------------------+----------------------+-------------------------------------------------+
| hr_presence | |No DB layout changes. |
+-------------------------------------------------+----------------------+-------------------------------------------------+
| hr_recruitment | | |
| hr_recruitment | Done | |
+-------------------------------------------------+----------------------+-------------------------------------------------+
| |new| hr_recruitment_skills | | |
+-------------------------------------------------+----------------------+-------------------------------------------------+
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
<field name="description">The user interacting with the application as interviewer don't need any specific access. They'll have access thanks to their interviewer assignation.</field>
</record>
<record id="email_template_data_applicant_congratulations" model="mail.template">
<field name="body_html" type="html">
<!-- The default template from version 15.0 should still work in version 16.0
No need to erase user data -->
<!-- <field name="body_html" type="html">
<table border="0" cellpadding="0" cellspacing="0" width="590" style="background-color: white; border-collapse: collapse; margin-left: 20px;">
<tr>
<td valign="top" style="padding: 0px 10px;">
Expand Down Expand Up @@ -47,12 +49,14 @@
</td>
</tr>
</table>
</field>
<field name="name">Recruitment: Application Acknowledgement</field>
</field> -->
<!-- <field name="name">Recruitment: Application Acknowledgement</field> -->
<field name="description">Confirmation email sent to all new job applications</field>
</record>
<record id="email_template_data_applicant_interest" model="mail.template">
<field name="body_html" type="html">
<!-- The default template from version 15.0 should still work in version 16.0
No need to erase user data -->
<!-- <field name="body_html" type="html">
<table border="0" cellpadding="0" cellspacing="0" width="590" style="background-color: white; border-collapse: collapse; margin-left: 20px;">
<tr>
<td valign="top" style="padding: 0px 10px;">
Expand All @@ -77,7 +81,7 @@
</t>
See you soon,
<div style="font-size: 11px; color: grey;">
-- <br/>
- <br/>
The HR Team
<t t-if="'website_url' in object.job_id and hasattr(object.job_id, 'website_url') and object.job_id.website_url">
Discover <a href="/jobs" style="text-decoration:none;color:#717188;">all our jobs</a>.<br/>
Expand Down Expand Up @@ -112,16 +116,16 @@
</td>
</tr>
</table>
</field>
<field name="name">Recruitment: Interest</field>
</field> -->
<!-- <field name="name">Recruitment: Interest</field> -->
<field name="description">Set this template to a recruitment stage to send it when applications reach that stage</field>
</record>
<record id="email_template_data_applicant_not_interested" model="mail.template">
<field name="name">Recruitment: Not interested anymore</field>
<!-- <field name="name">Recruitment: Not interested anymore</field> -->
<field name="description">When you refuse an application, you can choose this template</field>
</record>
<record id="email_template_data_applicant_refuse" model="mail.template">
<field name="name">Recruitment: Refuse</field>
<!-- <field name="name">Recruitment: Refuse</field> -->
<field name="description">When you refuse an application, you can choose this template</field>
</record>
<record id="group_hr_recruitment_user" model="res.groups">
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from openupgradelib import openupgrade

translations_to_delete = [
"group_hr_recruitment_user",
]


@openupgrade.migrate()
def migrate(env, version):
openupgrade.load_data(env.cr, "hr_recruitment", "16.0.1.1/noupdate_changes.xml")
openupgrade.delete_record_translations(
env.cr, "hr_recruitment", translations_to_delete
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
---Models in module 'hr_recruitment'---
new model applicant.send.mail [transient]

# NOTHING TO DO: new transient model

---Fields in module 'hr_recruitment'---
hr_recruitment / hr.applicant / interviewer_ids (many2many) : NEW relation: res.users
hr_recruitment / hr.applicant / linkedin_profile (char) : NEW
hr_recruitment / hr.job / _order : _order is now 'sequence, name asc' ('sequence, state desc, name asc')
hr_recruitment / hr.job / extended_interviewer_ids (many2many): NEW relation: res.users, isfunction: function, stored
hr_recruitment / hr.job / interviewer_ids (many2many) : NEW relation: res.users

# NOTHING TO DO: new fields

hr_recruitment / hr.recruitment.source / _inherits : DEL _inherits: {'utm.source': 'source_id'}

# NOTHING TO DO

hr_recruitment / hr.recruitment.source / medium_id (many2one) : NEW relation: utm.medium, hasdefault: default

# NOTHING TO DO: new field

---XML records in module 'hr_recruitment'---
NEW ir.actions.act_window: hr_recruitment.action_hr_applicant_new
NEW ir.actions.act_window: hr_recruitment.action_hr_job_interviewer
DEL ir.actions.act_window: hr_recruitment.hr_recruitment_source_action
NEW ir.actions.server: hr_recruitment.action_applicant_send_mail
DEL ir.actions.server: hr_recruitment.hr_applicant_resumes_server

# NOTHING TO DO

NEW ir.model.access: hr_recruitment.access_applicant_get_refuse_reason_interviewer
NEW ir.model.access: hr_recruitment.access_applicant_send_mail
NEW ir.model.access: hr_recruitment.access_applicant_send_mail_interviewer
NEW ir.model.access: hr_recruitment.access_hr_applicant_interviewer
NEW ir.model.access: hr_recruitment.access_hr_job_interviewer
NEW ir.model.access: hr_recruitment.access_hr_recruitment_refuse_reason_interviewer
NEW ir.model.access: hr_recruitment.access_hr_recruitment_stage_interviewer
NEW ir.rule: hr_recruitment.hr_applicant_interviewer_rule (noupdate)
NEW ir.rule: hr_recruitment.mail_message_interviewer_rule (noupdate)
NEW ir.ui.menu: hr_recruitment.menu_hr_job_position_interviewer
NEW ir.ui.menu: hr_recruitment.menu_hr_recruitment_config_activities
NEW ir.ui.menu: hr_recruitment.menu_hr_recruitment_config_applications
NEW ir.ui.menu: hr_recruitment.menu_hr_recruitment_config_employees
NEW ir.ui.menu: hr_recruitment.menu_hr_recruitment_config_jobs
NEW ir.ui.menu: hr_recruitment.menu_hr_recruitment_contract_type
NEW ir.ui.menu: hr_recruitment.menu_hr_recruitment_utm

# NOTHING TO DO

NEW ir.ui.menu: hr_recruitment.menu_hr_recruitment_utm_mediums
NEW ir.ui.menu: hr_recruitment.menu_hr_recruitment_utm_sources
DEL ir.ui.menu: hr_recruitment.menu_hr_job_position_config
DEL ir.ui.menu: hr_recruitment.menu_hr_recruitment_source

# NOTHING TO DO

NEW ir.ui.view: hr_recruitment.applicant_send_mail_view_form
NEW ir.ui.view: hr_recruitment.hr_applicant_view_form_interviewer
NEW ir.ui.view: hr_recruitment.hr_job_view_tree_inherit
NEW ir.ui.view: hr_recruitment.ir_attachment_hr_recruitment_list_view
NEW res.groups: hr_recruitment.group_applicant_cv_display (noupdate)
NEW res.groups: hr_recruitment.group_hr_recruitment_interviewer (noupdate)

# NOTHING TO DO

0 comments on commit d5a49d0

Please sign in to comment.