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.
Most of the changes are managed by the migration script of hr module. Load the noupdate_changes file.
- Loading branch information
1 parent
869f8c2
commit 17e900e
Showing
3 changed files
with
29 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/16.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 2023 Coop IT Easy (https://coopiteasy.be) | ||
# 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.cr, "hr_contract", "16.0.1.0/noupdate_changes.xml") |
19 changes: 19 additions & 0 deletions
19
openupgrade_scripts/scripts/hr_contract/16.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,19 @@ | ||
---Models in module 'hr_contract'--- | ||
model hr.contract.type (moved to hr) | ||
# DONE: in migration script of module hr | ||
---Fields in module 'hr_contract'--- | ||
hr_contract / hr.contract.type / __last_update (datetime) : module is now 'hr' ('hr_contract') | ||
hr_contract / hr.contract.type / _order : _order is now 'sequence' ('id') | ||
hr_contract / hr.contract.type / _order : module is now 'hr' ('hr_contract') | ||
hr_contract / hr.contract.type / display_name (char) : module is now 'hr' ('hr_contract') | ||
hr_contract / hr.contract.type / name (char) : module is now 'hr' ('hr_contract') | ||
# DONE: in migration script of module hr | ||
---XML records in module 'hr_contract'--- | ||
NEW ir.model.access: hr_contract.access_hr_contract_hr_employee_manager | ||
# NOTHING TO DO: New role with less privilege. No need to move user to this group in migration script. See: https://github.com/odoo/odoo/commit/9e14c112eef3b4098c0756b8da17a7253ea0c4d3 | ||
DEL ir.model.access: hr_contract.access_hr_contract_type_manager [renamed to hr module] | ||
# DONE: in migration script of module hr | ||
NEW ir.rule: hr_contract.ir_rule_hr_contract_employee_manager (noupdate) | ||
NEW ir.rule: hr_contract.ir_rule_hr_contract_manager (noupdate) | ||
NEW res.groups: hr_contract.group_hr_contract_employee_manager (noupdate) | ||
# NOTHING TO DO |