-
-
Notifications
You must be signed in to change notification settings - Fork 700
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2996 from ForgeFlow/14.0-mig-hr_contract
[14.0][MIG] hr_contract
- Loading branch information
Showing
4 changed files
with
50 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
openupgrade_scripts/scripts/hr_contract/14.0.1.0/noupdate_changes.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
openupgrade_scripts/scripts/hr_contract/14.0.1.0/post-migration.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Copyright (C) 2021 Open Source Integrators <https://www.opensourceintegrators.com/> | ||
# 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") |
37 changes: 37 additions & 0 deletions
37
openupgrade_scripts/scripts/hr_contract/14.0.1.0/upgrade_analysis_work.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |