diff --git a/addons/hr/migrations/10.0.1.1/openupgrade_analysis_work.txt b/addons/hr/migrations/10.0.1.1/openupgrade_analysis_work.txt index f481c07cfd6e..62aff3473e8d 100644 --- a/addons/hr/migrations/10.0.1.1/openupgrade_analysis_work.txt +++ b/addons/hr/migrations/10.0.1.1/openupgrade_analysis_work.txt @@ -8,12 +8,17 @@ DEL ir.actions.act_window: hr.view_department_form_installer DEL ir.actions.client: hr.action_client_hr_menu DEL ir.actions.todo: base.open_menu NEW mail.template: hr.mail_template_data_unknown_employee_email_address +NEW res.users: base.default_user +DEL web.tip: hr.hr_tip_1 +DEL web.tip: hr.hr_tip_2 +# Nothing to do + NEW res.groups: hr.group_hr_attendance NEW res.groups: hr.group_hr_manager NEW res.groups: hr.group_hr_user +# Done: Rename XML-IDs + DEL res.groups: base.group_hr_attendance DEL res.groups: base.group_hr_manager DEL res.groups: base.group_hr_user -NEW res.users: base.default_user -DEL web.tip: hr.hr_tip_1 -DEL web.tip: hr.hr_tip_2 +# Nothing to do: noupdate=0 records diff --git a/addons/hr/migrations/10.0.1.1/pre-migration.py b/addons/hr/migrations/10.0.1.1/pre-migration.py new file mode 100644 index 000000000000..25284f971a02 --- /dev/null +++ b/addons/hr/migrations/10.0.1.1/pre-migration.py @@ -0,0 +1,16 @@ +# -*- coding: utf-8 -*- +# Copyright 2017 Onestein () +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from openupgradelib import openupgrade + +_xmlid_renames = [ + ('base.group_hr_user', 'hr.group_hr_user'), + ('base.group_hr_manager', 'hr.group_hr_manager'), + ('base.group_hr_attendance', 'hr.group_hr_attendance'), +] + + +@openupgrade.migrate() +def migrate(env, version): + openupgrade.rename_xmlids(env.cr, _xmlid_renames) diff --git a/odoo/openupgrade/doc/source/modules90-100.rst b/odoo/openupgrade/doc/source/modules90-100.rst index 14b8989888f6..cfe89e6ffde6 100644 --- a/odoo/openupgrade/doc/source/modules90-100.rst +++ b/odoo/openupgrade/doc/source/modules90-100.rst @@ -133,7 +133,7 @@ missing in the new release are marked with |del|. +-----------------------------------+-----------------------------------+ |google_spreadsheet | | +-----------------------------------+-----------------------------------+ -|hr | | +|hr | Done | +-----------------------------------+-----------------------------------+ |hr_attendance | | +-----------------------------------+-----------------------------------+