From d768a9ab46f45c8eb8005fd205f2d68a81d38dda Mon Sep 17 00:00:00 2001 From: tranngocson1996 Date: Fri, 14 Jan 2022 09:07:48 +0700 Subject: [PATCH] [MIG] stock_sms: migration script --- docsource/modules130-140.rst | 2 +- .../scripts/stock_sms/14.0.1.0/pre-migration.py | 11 +++++++++++ .../stock_sms/14.0.1.0/upgrade_analysis_work.txt | 8 ++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 openupgrade_scripts/scripts/stock_sms/14.0.1.0/pre-migration.py create mode 100644 openupgrade_scripts/scripts/stock_sms/14.0.1.0/upgrade_analysis_work.txt diff --git a/docsource/modules130-140.rst b/docsource/modules130-140.rst index 60666719a40d..1638dcb8e3d9 100644 --- a/docsource/modules130-140.rst +++ b/docsource/modules130-140.rst @@ -642,7 +642,7 @@ Module coverage 13.0 -> 14.0 +--------------------------------------------+-------------------------------------------------+ |stock_picking_batch | | +--------------------------------------------+-------------------------------------------------+ -|stock_sms | | +|stock_sms | Done | +--------------------------------------------+-------------------------------------------------+ |survey | | +--------------------------------------------+-------------------------------------------------+ diff --git a/openupgrade_scripts/scripts/stock_sms/14.0.1.0/pre-migration.py b/openupgrade_scripts/scripts/stock_sms/14.0.1.0/pre-migration.py new file mode 100644 index 000000000000..8c31338e348c --- /dev/null +++ b/openupgrade_scripts/scripts/stock_sms/14.0.1.0/pre-migration.py @@ -0,0 +1,11 @@ +from openupgradelib import openupgrade + + +@openupgrade.migrate() +def migrate(env, version): + openupgrade.set_xml_ids_noupdate_value( + env, + "stock_sms", + ["ir_rule_sms_template_stock_manager"], + True, + ) diff --git a/openupgrade_scripts/scripts/stock_sms/14.0.1.0/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/stock_sms/14.0.1.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..648006c42490 --- /dev/null +++ b/openupgrade_scripts/scripts/stock_sms/14.0.1.0/upgrade_analysis_work.txt @@ -0,0 +1,8 @@ +---Models in module 'stock_sms'--- +---Fields in module 'stock_sms'--- +---XML records in module 'stock_sms'--- +NEW ir.model.access: stock_sms.access_confirm_stock_sms +# NOTHING TO DO + +ir.rule: stock_sms.ir_rule_sms_template_stock_manager (noupdate) (noupdate switched) +# DONE: pre-migration: noupdate changed to "1"