Skip to content

Commit

Permalink
[MIG] hr_contract: migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
duong77476-viindoo authored and royle-vietnam committed May 28, 2024
1 parent 2e33b97 commit 0fbf169
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docsource/modules160-170.rst
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ Module coverage 16.0 -> 17.0
+---------------------------------------------------+----------------------+-------------------------------------------------+
| hr_attendance | | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
| hr_contract | | |
| hr_contract |Done | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
| hr_expense | | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
Expand Down
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")
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

0 comments on commit 0fbf169

Please sign in to comment.