Skip to content

Commit

Permalink
Merge pull request #3093 from tranngocson1996/v14_mig_stock_sms
Browse files Browse the repository at this point in the history
[MIG][14.0] stock_sms: migration script
  • Loading branch information
MiquelRForgeFlow authored Jun 16, 2022
2 parents 87f37d5 + d768a9a commit 07994af
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docsource/modules130-140.rst
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,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"

0 comments on commit 07994af

Please sign in to comment.