diff --git a/addons/website_form/migrations/13.0.1.0/openupgrade_analysis_work.txt b/addons/website_form/migrations/13.0.1.0/openupgrade_analysis_work.txt new file mode 100644 index 000000000000..a0d9c2aa5266 --- /dev/null +++ b/addons/website_form/migrations/13.0.1.0/openupgrade_analysis_work.txt @@ -0,0 +1,21 @@ +---Models in module 'website_form'--- + +---Fields in module 'website_form'--- +website_form / ir.model / website_form_key (char) : NEW +# NOTHING TO DO: new field + +---XML records in module 'website_form'--- +NEW ir.model: mail.model_mail_mail +NEW ir.ui.view: website_form.assets_editor +NEW ir.ui.view: website_form.assets_tests +NEW ir.ui.view: website_form.contactus_form +NEW ir.ui.view: website_form.ir_model_fields_view +NEW ir.ui.view: website_form.ir_model_view +NEW ir.ui.view: website_form.register_s_website_form +NEW ir.ui.view: website_form.remove_external_snippets +NEW ir.ui.view: website_form.s_website_form +NEW ir.ui.view: website_form.snippet_options +# NOTHING TO DO: new xmls + +NEW website.page: website_form.contactus_thanks [renamed from website_crm module] +# DONE: pre-migration: try to rename diff --git a/addons/website_form/migrations/13.0.1.0/pre-migration.py b/addons/website_form/migrations/13.0.1.0/pre-migration.py new file mode 100644 index 000000000000..7a219d799a12 --- /dev/null +++ b/addons/website_form/migrations/13.0.1.0/pre-migration.py @@ -0,0 +1,12 @@ +# Copyright 2021 Bloopark - Bishal Pun +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +from openupgradelib import openupgrade + +_xmlid_renames = [ + ('website_crm.contactus_thanks', 'website_form.contactus_thanks'), +] + + +@openupgrade.migrate() +def migrate(env, version): + openupgrade.rename_xmlids(env.cr, _xmlid_renames) diff --git a/odoo/openupgrade/doc/source/modules120-130.rst b/odoo/openupgrade/doc/source/modules120-130.rst index 10119d3012ea..a4043f5e7cfb 100644 --- a/odoo/openupgrade/doc/source/modules120-130.rst +++ b/odoo/openupgrade/doc/source/modules120-130.rst @@ -673,7 +673,7 @@ missing in the new release are marked with |del|. +----------------------------------------------+-------------------------------------------------+ |website_event_track | | +----------------------------------------------+-------------------------------------------------+ -|website_form | | +|website_form | Done | +----------------------------------------------+-------------------------------------------------+ |website_form_project | | +----------------------------------------------+-------------------------------------------------+