Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 | | |
+-------------------------------------------------+----------------------+-------------------------------------------------+
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
<field name="description">Enable the user to see and manage the contracts from Employee application.</field>
</record>
<record id="group_hr_contract_manager" model="res.groups">
<field name="implied_ids" eval="[(4, ref('hr_contract.group_hr_contract_employee_manager'))]"/>
<field name="implied_ids" eval="[(5, ), (4, ref('hr_contract.group_hr_contract_employee_manager'))]"/>
</record>
</odoo>
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,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