-
-
Notifications
You must be signed in to change notification settings - Fork 708
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 #4336 from Tecnativa/16-add-hr_contract
[16.0][OU-ADD] hr_contract
- Loading branch information
Showing
4 changed files
with
34 additions
and
2 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
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") |
23 changes: 23 additions & 0 deletions
23
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,23 @@ | ||
---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 |