diff --git a/docsource/modules130-140.rst b/docsource/modules130-140.rst index 60666719a40d..c1742496e043 100644 --- a/docsource/modules130-140.rst +++ b/docsource/modules130-140.rst @@ -732,7 +732,7 @@ Module coverage 13.0 -> 14.0 +--------------------------------------------+-------------------------------------------------+ |website_google_map | | +--------------------------------------------+-------------------------------------------------+ -|website_hr_recruitment | | +|website_hr_recruitment | Done | +--------------------------------------------+-------------------------------------------------+ | |new| website_jitsi | | +--------------------------------------------+-------------------------------------------------+ diff --git a/openupgrade_scripts/scripts/website_hr_recruitment/14.0.1.0/post-migration.py b/openupgrade_scripts/scripts/website_hr_recruitment/14.0.1.0/post-migration.py new file mode 100644 index 000000000000..87724b61e82b --- /dev/null +++ b/openupgrade_scripts/scripts/website_hr_recruitment/14.0.1.0/post-migration.py @@ -0,0 +1,9 @@ +from openupgradelib import openupgrade + + +@openupgrade.migrate() +def migrate(env, version): + openupgrade.delete_records_safely_by_xml_id( + env, + ["website_hr_recruitment.menu_jobs"], + ) diff --git a/openupgrade_scripts/scripts/website_hr_recruitment/14.0.1.0/pre-migration.py b/openupgrade_scripts/scripts/website_hr_recruitment/14.0.1.0/pre-migration.py new file mode 100644 index 000000000000..c51747a58391 --- /dev/null +++ b/openupgrade_scripts/scripts/website_hr_recruitment/14.0.1.0/pre-migration.py @@ -0,0 +1,16 @@ +from openupgradelib import openupgrade + + +@openupgrade.migrate() +def migrate(env, version): + openupgrade.set_xml_ids_noupdate_value( + env, + "website_hr_recruitment", + [ + "hr_department_public", + "hr_job_officer", + "hr_job_portal", + "hr_job_public", + ], + True, + ) diff --git a/openupgrade_scripts/scripts/website_hr_recruitment/14.0.1.0/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/website_hr_recruitment/14.0.1.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..487b2f265067 --- /dev/null +++ b/openupgrade_scripts/scripts/website_hr_recruitment/14.0.1.0/upgrade_analysis_work.txt @@ -0,0 +1,26 @@ +---Models in module 'website_hr_recruitment'--- +---Fields in module 'website_hr_recruitment'--- +website_hr_recruitment / hr.job / seo_name (char) : NEW +# NOTHING TO DO + +---XML records in module 'website_hr_recruitment'--- +ir.rule: website_hr_recruitment.hr_department_public (noupdate) (noupdate switched) +ir.rule: website_hr_recruitment.hr_job_officer (noupdate) (noupdate switched) +ir.rule: website_hr_recruitment.hr_job_portal (noupdate) (noupdate switched) +ir.rule: website_hr_recruitment.hr_job_public (noupdate) (noupdate switched) +# DONE: pre-migration: noupdate changed to "1" + +NEW ir.ui.view: website_hr_recruitment.assets_frontend +NEW ir.ui.view: website_hr_recruitment.job_edit_options +NEW ir.ui.view: website_hr_recruitment.job_filter_by_countries +NEW ir.ui.view: website_hr_recruitment.job_filter_by_departments +NEW ir.ui.view: website_hr_recruitment.job_filter_by_offices +NEW ir.ui.view: website_hr_recruitment.job_right_side_bar +NEW ir.ui.view: website_hr_recruitment.view_hr_job_kanban_referal_extends +DEL ir.ui.view: website_hr_recruitment.job_countries +DEL ir.ui.view: website_hr_recruitment.job_departments +DEL ir.ui.view: website_hr_recruitment.job_offices +# NOTHING TO DO + +DEL website.menu: website_hr_recruitment.menu_jobs (noupdate) +# DONE: post-migration: safely deleted xmlid