diff --git a/docsource/modules130-140.rst b/docsource/modules130-140.rst index fcbf06a105e5..6ecf06eeb17d 100644 --- a/docsource/modules130-140.rst +++ b/docsource/modules130-140.rst @@ -154,7 +154,7 @@ Module coverage 13.0 -> 14.0 +--------------------------------------------+-------------------------------------------------+ |hr_attendance | | +--------------------------------------------+-------------------------------------------------+ -|hr_contract | | +|hr_contract | Done | +--------------------------------------------+-------------------------------------------------+ |hr_expense | | +--------------------------------------------+-------------------------------------------------+ diff --git a/openupgrade_scripts/scripts/hr_contract/14.0.1.0/noupdate_changes.xml b/openupgrade_scripts/scripts/hr_contract/14.0.1.0/noupdate_changes.xml index 1d53390edc1e..7b7aa0a0002f 100644 --- a/openupgrade_scripts/scripts/hr_contract/14.0.1.0/noupdate_changes.xml +++ b/openupgrade_scripts/scripts/hr_contract/14.0.1.0/noupdate_changes.xml @@ -1,8 +1,8 @@ - - - + diff --git a/openupgrade_scripts/scripts/hr_contract/14.0.1.0/post-migration.py b/openupgrade_scripts/scripts/hr_contract/14.0.1.0/post-migration.py new file mode 100644 index 000000000000..eace842ae967 --- /dev/null +++ b/openupgrade_scripts/scripts/hr_contract/14.0.1.0/post-migration.py @@ -0,0 +1,9 @@ +# Copyright (C) 2021 Open Source Integrators +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). +from openupgradelib import openupgrade + + +@openupgrade.migrate() +def migrate(env, version): + # Load noupdate changes + openupgrade.load_data(env.cr, "hr_contract", "14.0.1.0/noupdate_changes.xml") diff --git a/openupgrade_scripts/scripts/hr_contract/14.0.1.0/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/hr_contract/14.0.1.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..c66f9b22eb5e --- /dev/null +++ b/openupgrade_scripts/scripts/hr_contract/14.0.1.0/upgrade_analysis_work.txt @@ -0,0 +1,37 @@ +---Models in module 'hr_contract'--- +new model hr.payroll.structure.type +# NOTHING TO DO + +---Fields in module 'hr_contract'--- +hr_contract / hr.contract / advantages (text) : DEL +# NOTHING TO DO: unused field + +hr_contract / hr.contract / company_id (many2one) : now a function +hr_contract / hr.contract / department_id (many2one) : now a function +hr_contract / hr.contract / job_id (many2one) : now a function +hr_contract / hr.contract / resource_calendar_id (many2one): now a function +# NOTHING TO DO: Computed writable fields whose dependencies are not changed + +hr_contract / hr.contract / message_has_sms_error (boolean): module is now 'sms' ('hr_contract') +hr_contract / hr.contract / website_message_ids (one2many): module is now 'portal' ('hr_contract') +# NOTHING TO DO + +hr_contract / hr.employee / medic_exam (date) : DEL +# NOTHING TO DO: unused field + +hr_contract / hr.contract / structure_type_id (many2one) : NEW relation: hr.payroll.structure.type +hr_contract / hr.payroll.structure.type / country_id (many2one) : NEW relation: res.country, hasdefault +hr_contract / hr.payroll.structure.type / default_resource_calendar_id (many2one): NEW relation: resource.calendar, hasdefault +hr_contract / hr.payroll.structure.type / name (char) : NEW +# NOTHING TO DO: new feature for categorizing contracts + +---XML records in module 'hr_contract'--- +NEW hr.payroll.structure.type: hr_contract.structure_type_employee (noupdate) +NEW hr.payroll.structure.type: hr_contract.structure_type_employee_cp200 (noupdate) +NEW hr.payroll.structure.type: hr_contract.structure_type_employee_cp200_pfi (noupdate) +NEW hr.payroll.structure.type: hr_contract.structure_type_worker (noupdate) +NEW ir.model.access: hr_contract.access_hr_payroll_structure_type_hr_contract_manager +NEW ir.rule: hr_contract.ir_rule_hr_payroll_structure_type_multi_company (noupdate) +NEW ir.ui.view: hr_contract.hr_departure_wizard_view_form +DEL ir.ui.view: hr_contract.hr_employee_view_kanban +# NOTHING TO DO