forked from tvtma/OpenUpgrade
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG] hr_contract: migration to 17.0
- Loading branch information
1 parent
2e33b97
commit 0fbf169
Showing
3 changed files
with
34 additions
and
1 deletion.
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
9 changes: 9 additions & 0 deletions
9
openupgrade_scripts/scripts/hr_contract/17.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 2024 Viindoo Technology Joint Stock Company (Viindoo) | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
||
from openupgradelib import openupgrade | ||
|
||
|
||
@openupgrade.migrate() | ||
def migrate(env, version): | ||
openupgrade.load_data(env, "hr_contract", "17.0.1.0/noupdate_changes.xml") |
24 changes: 24 additions & 0 deletions
24
openupgrade_scripts/scripts/hr_contract/17.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,24 @@ | ||
---Models in module 'hr_contract'--- | ||
---Fields in module 'hr_contract'--- | ||
hr_contract / hr.contract / activity_user_id (many2one) : not related anymore | ||
hr_contract / hr.contract / activity_user_id (many2one) : now a function | ||
hr_contract / hr.contract / message_has_sms_error (boolean): previously in module sms | ||
hr_contract / hr.contract / message_main_attachment_id (many2one): DEL relation: ir.attachment | ||
hr_contract / hr.contract / rating_ids (one2many) : NEW relation: rating.rating | ||
hr_contract / hr.contract / website_message_ids (one2many): previously in module portal | ||
# NOTHING TO DO | ||
|
||
hr_contract / res.company / contract_expiration_notice_period (integer): NEW hasdefault: default | ||
hr_contract / res.company / work_permit_expiration_notice_period (integer): NEW hasdefault: default | ||
# NOTHING TO DO: new feature | ||
|
||
---XML records in module 'hr_contract'--- | ||
NEW ir.ui.menu: hr_contract.hr_menu_contract | ||
DEL ir.ui.menu: hr_contract.hr_menu_contract_history | ||
NEW ir.ui.view: hr_contract.hr_employee_view_graph_inherit_hr_contract | ||
NEW ir.ui.view: hr_contract.hr_employee_view_pivot_inherit_hr_contract | ||
NEW ir.ui.view: hr_contract.hr_hr_employee_view_form3 | ||
NEW ir.ui.view: hr_contract.res_config_settings_view_form | ||
NEW ir.ui.view: hr_contract.view_employee_public_form | ||
DEL ir.ui.view: hr_contract.hr_employee_public_view_form | ||
# NOTHING TO DO |