Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MIG][14.0] stock_sms: migration script #3093

Merged
merged 1 commit into from
Jun 16, 2022
Merged
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/modules130-140.rst
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ Module coverage 13.0 -> 14.0
+--------------------------------------------+-------------------------------------------------+
|stock_picking_batch | |
+--------------------------------------------+-------------------------------------------------+
|stock_sms | |
|stock_sms | Done |
+--------------------------------------------+-------------------------------------------------+
|survey | |
+--------------------------------------------+-------------------------------------------------+
Expand Down
11 changes: 11 additions & 0 deletions openupgrade_scripts/scripts/stock_sms/14.0.1.0/pre-migration.py
Original file line number Diff line number Diff line change
@@ -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,
)
Original file line number Diff line number Diff line change
@@ -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"