Skip to content

Commit

Permalink
[OU-ADD] hr_contract
Browse files Browse the repository at this point in the history
Most of the changes are managed by the migration script of hr module.
Load the noupdate_changes file.
  • Loading branch information
remytms authored and royle-vietnam committed Jul 21, 2023
1 parent 869f8c2 commit 17e900e
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docsource/modules150-160.rst
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ Module coverage 15.0 -> 16.0
+-------------------------------------------------+----------------------+-------------------------------------------------+
| hr_attendance |Done | |
+-------------------------------------------------+----------------------+-------------------------------------------------+
| hr_contract | | |
| hr_contract | Done | |
+-------------------------------------------------+----------------------+-------------------------------------------------+
| hr_expense |Done | |
+-------------------------------------------------+----------------------+-------------------------------------------------+
Expand Down
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")
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

0 comments on commit 17e900e

Please sign in to comment.