diff --git a/docsource/modules160-170.rst b/docsource/modules160-170.rst index 399480a9cb79..dc6dc14ff8d7 100644 --- a/docsource/modules160-170.rst +++ b/docsource/modules160-170.rst @@ -122,7 +122,7 @@ Module coverage 16.0 -> 17.0 +---------------------------------------------------+----------------------+-------------------------------------------------+ | delivery_stock_picking_batch | |No DB layout changes. | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| digest | | | +| digest | Done | | +---------------------------------------------------+----------------------+-------------------------------------------------+ | event | | | +---------------------------------------------------+----------------------+-------------------------------------------------+ diff --git a/openupgrade_scripts/scripts/digest/17.0.1.1/post-migration.py b/openupgrade_scripts/scripts/digest/17.0.1.1/post-migration.py new file mode 100644 index 000000000000..b2bd160112b2 --- /dev/null +++ b/openupgrade_scripts/scripts/digest/17.0.1.1/post-migration.py @@ -0,0 +1,9 @@ +# Copyright 2024 Tecnativa - Pedro M. Baeza +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). +from openupgradelib import openupgrade + + +@openupgrade.migrate() +def migrate(env, version): + openupgrade.load_data(env, "digest", "17.0.1.1/noupdate_changes.xml") + openupgrade.delete_record_translations(env.cr, "digest", ["digest_mail_layout"]) diff --git a/openupgrade_scripts/scripts/digest/17.0.1.1/pre-migration.py b/openupgrade_scripts/scripts/digest/17.0.1.1/pre-migration.py new file mode 100644 index 000000000000..340a74c0e3e6 --- /dev/null +++ b/openupgrade_scripts/scripts/digest/17.0.1.1/pre-migration.py @@ -0,0 +1,19 @@ +# Copyright 2024 Viindoo Technology Joint Stock Company (Viindoo) +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). +from openupgradelib import openupgrade + + +@openupgrade.migrate() +def migrate(env, version): + openupgrade.set_xml_ids_noupdate_value( + env, + "digest", + [ + "digest_tip_digest_0", + "digest_tip_digest_1", + "digest_tip_digest_2", + "digest_tip_digest_3", + "digest_tip_digest_4", + ], + False, + ) diff --git a/openupgrade_scripts/scripts/digest/17.0.1.1/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/digest/17.0.1.1/upgrade_analysis_work.txt new file mode 100644 index 000000000000..15bd81af967c --- /dev/null +++ b/openupgrade_scripts/scripts/digest/17.0.1.1/upgrade_analysis_work.txt @@ -0,0 +1,9 @@ +---Models in module 'digest'--- +---Fields in module 'digest'--- +---XML records in module 'digest'--- +digest.tip: digest.digest_tip_digest_0 (noupdate switched) +digest.tip: digest.digest_tip_digest_1 (noupdate switched) +digest.tip: digest.digest_tip_digest_2 (noupdate switched) +digest.tip: digest.digest_tip_digest_3 (noupdate switched) +digest.tip: digest.digest_tip_digest_4 (noupdate switched) +# DONE: switched noupdate in pre-migration