Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[13.0][ADD] hr_recruitment #2290

Merged
merged 1 commit into from
Feb 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---Models in module 'hr_recruitment'---
---Fields in module 'hr_recruitment'---
hr_recruitment / hr.applicant / email_cc (text) : type is now 'char' ('text')
Yasaie marked this conversation as resolved.
Show resolved Hide resolved
# NOTHING TO DO: Handled by Odoo core

hr_recruitment / hr.applicant / reference (char) : DEL
hr_recruitment / hr.job / favorite_user_ids (many2many) : NEW relation: res.users, hasdefault
# NOTHING TO DO

hr_recruitment / hr.recruitment.stage / job_id (many2one) : DEL relation: hr.job
hr_recruitment / hr.recruitment.stage / job_ids (many2many) : NEW relation: hr.job
# DONE: post-migration: transformed the many2one to many2many

---XML records in module 'hr_recruitment'---
DEL ir.actions.act_window: hr_recruitment.action_hr_job_no_employee
DEL ir.actions.act_window: hr_recruitment.hr_applicant_resumes
NEW ir.actions.server: hr_recruitment.hr_applicant_resumes_server
NEW ir.module.category: base.module_category_human_resources_recruitment (noupdate)
NEW ir.ui.menu: hr_recruitment.hr_applicant_report_menu
DEL ir.ui.menu: hr_recruitment.menu_crm_case_categ0_act_job02
NEW ir.ui.view: hr_recruitment.applicant_hired_template
NEW ir.ui.view: hr_recruitment.assets_tests
NEW ir.ui.view: hr_recruitment.hr_applicant_category_view_tree
NEW ir.ui.view: hr_recruitment.hr_applicant_view_activity
NEW ir.ui.view: hr_recruitment.hr_applicant_view_form
NEW ir.ui.view: hr_recruitment.hr_applicant_view_search_bis
NEW ir.ui.view: hr_recruitment.hr_job_search_view
DEL ir.ui.view: hr_recruitment.crm_case_form_view_job
DEL ir.ui.view: hr_recruitment.view_crm_case_jobs_filter
# NOTHING TO DO: New records or noupdate=0
21 changes: 21 additions & 0 deletions addons/hr_recruitment/migrations/13.0.1.0/post-migration.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 2020 Payam Yasaie <https://www.tashilgostar.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from openupgradelib import openupgrade


@openupgrade.migrate()
def migrate(env, version):
openupgrade.m2o_to_x2m(
env.cr,
env['hr.recruitment.stage'], 'hr_recruitment_stage',
'job_ids', openupgrade.get_legacy_name('job_id')
)
openupgrade.load_data(env.cr, 'hr_recruitment', 'migrations/13.0.1.0/noupdate_changes.xml')
openupgrade.delete_record_translations(
env.cr, 'hr_recruitment', [
'email_template_data_applicant_congratulations',
'email_template_data_applicant_interest',
'email_template_data_applicant_refuse',
],
)
15 changes: 15 additions & 0 deletions addons/hr_recruitment/migrations/13.0.1.0/pre-migration.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2020 Payam Yasaie <https://www.tashilgostar.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from openupgradelib import openupgrade

_column_renames = {
'hr_recruitment_stage': [
('job_id', None),
],
}


@openupgrade.migrate()
def migrate(env, version):
openupgrade.rename_columns(env.cr, _column_renames)
2 changes: 1 addition & 1 deletion odoo/openupgrade/doc/source/modules120-130.rst
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ missing in the new release are marked with |del|.
+----------------------------------------------+-------------------------------------------------+
| |new| hr_presence | |
+----------------------------------------------+-------------------------------------------------+
|hr_recruitment | |
|hr_recruitment | Done |
+----------------------------------------------+-------------------------------------------------+
|hr_recruitment_survey | |
+----------------------------------------------+-------------------------------------------------+
Expand Down