Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docsource/modules160-170.rst
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ Module coverage 16.0 -> 17.0
+---------------------------------------------------+----------------------+-------------------------------------------------+
| delivery_stock_picking_batch | |No DB layout changes. |
+---------------------------------------------------+----------------------+-------------------------------------------------+
| digest | | |
| digest | Done | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
| event | | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
Expand Down
19 changes: 19 additions & 0 deletions openupgrade_scripts/scripts/digest/17.0.1.1/pre-migration.py
Original file line number Diff line number Diff line change
@@ -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.load_data(env, "digest", "17.0.1.1/noupdate_changes.xml")
openupgrade.set_xml_ids_noupdate_value(
env,
"digest",
[
"digest_tip_digest_1",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"digest_tip_digest_1",
"digest_tip_digest_0",
"digest_tip_digest_1",

I think you are missing the first one no ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah

"digest_tip_digest_2",
"digest_tip_digest_3",
"digest_tip_digest_4",
],
False,
)
Original file line number Diff line number Diff line change
@@ -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