diff --git a/document_page/migrations/10.0.1.0.0/openupgrade_analysis.txt b/document_page/migrations/10.0.1.0.0/openupgrade_analysis.txt new file mode 100644 index 00000000..25a098bb --- /dev/null +++ b/document_page/migrations/10.0.1.0.0/openupgrade_analysis.txt @@ -0,0 +1,5 @@ +---Fields in module 'document_page'--- +---XML records in module 'document_page'--- +NEW ir.ui.view: document_page.document_page_css +NEW res.groups: knowledge.group_document_user +DEL res.groups: base.group_document_user diff --git a/document_page/migrations/10.0.1.0.0/openupgrade_analysis_work.txt b/document_page/migrations/10.0.1.0.0/openupgrade_analysis_work.txt new file mode 100644 index 00000000..9a80aee5 --- /dev/null +++ b/document_page/migrations/10.0.1.0.0/openupgrade_analysis_work.txt @@ -0,0 +1,8 @@ +---Fields in module 'document_page'--- +---XML records in module 'document_page'--- +NEW ir.ui.view: document_page.document_page_css +# Nothing to do +NEW res.groups: knowledge.group_document_user +# Done: Rename XML-IDs +DEL res.groups: base.group_document_user +# Nothing to do: noupdate=0 records diff --git a/document_page/migrations/10.0.1.0.0/pre-migration.py b/document_page/migrations/10.0.1.0.0/pre-migration.py new file mode 100644 index 00000000..84011acc --- /dev/null +++ b/document_page/migrations/10.0.1.0.0/pre-migration.py @@ -0,0 +1,14 @@ +# -*- 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_document_user', 'knowledge.group_hr_user'), +] + + +@openupgrade.migrate() +def migrate(env, version): + openupgrade.rename_xmlids(env.cr, _xmlid_renames)