From e91a61844946231b2d3bdf5e07f36d23a14328fd Mon Sep 17 00:00:00 2001 From: sang250399 Date: Thu, 23 Jun 2022 15:34:44 +0700 Subject: [PATCH] [MIG] website_slides_survey: migration script --- docsource/modules140-150.rst | 2 +- .../15.0.1.0/post-migration.py | 15 +++++++++++++++ .../15.0.1.0/upgrade_analysis_work.txt | 7 +++++++ 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 openupgrade_scripts/scripts/website_slides_survey/15.0.1.0/post-migration.py create mode 100644 openupgrade_scripts/scripts/website_slides_survey/15.0.1.0/upgrade_analysis_work.txt diff --git a/docsource/modules140-150.rst b/docsource/modules140-150.rst index 182f4011d75d..ea6e15ec7d03 100644 --- a/docsource/modules140-150.rst +++ b/docsource/modules140-150.rst @@ -806,7 +806,7 @@ Module coverage 14.0 -> 15.0 +-------------------------------------------------+----------------------+-------------------------------------------------+ | website_slides_forum | | | +-------------------------------------------------+----------------------+-------------------------------------------------+ -| website_slides_survey | | | +| website_slides_survey |Done | | +-------------------------------------------------+----------------------+-------------------------------------------------+ | website_sms | | | +-------------------------------------------------+----------------------+-------------------------------------------------+ diff --git a/openupgrade_scripts/scripts/website_slides_survey/15.0.1.0/post-migration.py b/openupgrade_scripts/scripts/website_slides_survey/15.0.1.0/post-migration.py new file mode 100644 index 000000000000..7f450efb27be --- /dev/null +++ b/openupgrade_scripts/scripts/website_slides_survey/15.0.1.0/post-migration.py @@ -0,0 +1,15 @@ +from openupgradelib import openupgrade + + +@openupgrade.migrate() +def migrate(env, version): + openupgrade.load_data( + env.cr, "website_slides_survey", "15.0.1.0/noupdate_changes.xml" + ) + openupgrade.delete_record_translations( + env.cr, + "website_slides_survey", + [ + "mail_template_user_input_certification_failed", + ], + ) diff --git a/openupgrade_scripts/scripts/website_slides_survey/15.0.1.0/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/website_slides_survey/15.0.1.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..12e1a4444639 --- /dev/null +++ b/openupgrade_scripts/scripts/website_slides_survey/15.0.1.0/upgrade_analysis_work.txt @@ -0,0 +1,7 @@ +---Models in module 'website_slides_survey'--- +---Fields in module 'website_slides_survey'--- +---XML records in module 'website_slides_survey'--- +DEL ir.model.constraint: website_slides_survey.constraint_slide_slide_check_certification_preview +DEL ir.model.constraint: website_slides_survey.constraint_slide_slide_check_survey_id +DEL ir.ui.view: website_slides_survey.assets_frontend +# NOTHING TO DO