Skip to content

Commit

Permalink
Merge pull request #3090 from tranngocson1996/v14_mig_website_livechat
Browse files Browse the repository at this point in the history
[MIG][14.0] website_livechat: migration script
  • Loading branch information
MiquelRForgeFlow authored Jul 21, 2022
2 parents 58ef952 + 52ea710 commit 4422597
Show file tree
Hide file tree
Showing 4 changed files with 37 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 @@ -742,7 +742,7 @@ Module coverage 13.0 -> 14.0
+--------------------------------------------+-------------------------------------------------+
|website_links | |
+--------------------------------------------+-------------------------------------------------+
|website_livechat | |
|website_livechat | Done |
+--------------------------------------------+-------------------------------------------------+
|website_mail | Done |
+--------------------------------------------+-------------------------------------------------+
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from openupgradelib import openupgrade


@openupgrade.migrate()
def migrate(env, version):
openupgrade.delete_records_safely_by_xml_id(
env,
["website_livechat.menu_livechat"],
)
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,
"website_livechat",
["im_livechat_channel_rule_public"],
True,
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---Models in module 'website_livechat'---
---Fields in module 'website_livechat'---
website_livechat / mail.channel / livechat_active (boolean) : module is now 'im_livechat' ('website_livechat')
# NOTHING TO DO: the website_livechat module depends on im_livechat module

---XML records in module 'website_livechat'---
ir.rule: website_livechat.im_livechat_channel_rule_public (noupdate) (noupdate switched)
# DONE: pre-migration: noupdate changed to "1"


NEW ir.ui.view: website_livechat.assets_tests
NEW ir.ui.view: website_livechat.qunit_suite
# NOTHING TO DO

DEL website.menu: website_livechat.menu_livechat (noupdate)
# DONE: post-migration: safely deleted xmlid

0 comments on commit 4422597

Please sign in to comment.