diff --git a/docsource/modules170-180.rst b/docsource/modules170-180.rst index 62726d507051..79c1b4d16e1c 100644 --- a/docsource/modules170-180.rst +++ b/docsource/modules170-180.rst @@ -230,9 +230,9 @@ Module coverage 17.0 -> 18.0 +---------------------------------------------------+----------------------+-------------------------------------------------+ | iap_mail |Nothing to do | | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| im_livechat | | | +| im_livechat |Done | | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| |del| im_livechat_mail_bot | |Merged into mail_bot. | +| |del| im_livechat_mail_bot |Nothing to do |Merged into mail_bot. | +---------------------------------------------------+----------------------+-------------------------------------------------+ | l10n_account_edi_ubl_cii_tests | | | +---------------------------------------------------+----------------------+-------------------------------------------------+ diff --git a/openupgrade_scripts/scripts/im_livechat/18.0.1.0/post-migration.py b/openupgrade_scripts/scripts/im_livechat/18.0.1.0/post-migration.py new file mode 100644 index 000000000000..d3ba8bc21efe --- /dev/null +++ b/openupgrade_scripts/scripts/im_livechat/18.0.1.0/post-migration.py @@ -0,0 +1,9 @@ +from openupgradelib import openupgrade + + +@openupgrade.migrate() +def migrate(env, version): + openupgrade.load_data(env, "im_livechat", "18.0.1.0/noupdate_changes.xml") + openupgrade.delete_record_translations( + env.cr, "im_livechat", ["livechat_email_template"] + ) diff --git a/openupgrade_scripts/scripts/im_livechat/18.0.1.0/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/im_livechat/18.0.1.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..e9e0754aea84 --- /dev/null +++ b/openupgrade_scripts/scripts/im_livechat/18.0.1.0/upgrade_analysis_work.txt @@ -0,0 +1,15 @@ +---Models in module 'im_livechat'--- +---Fields in module 'im_livechat'--- +im_livechat / res.users.settings / is_discuss_sidebar_category_livechat_open (boolean): DEL +# NOTHING TO DO + +---XML records in module 'im_livechat'--- +NEW ir.actions.act_window.view: im_livechat.discuss_channel_action_kanban +NEW ir.actions.act_window.view: im_livechat.discuss_channel_action_livechat_kanban +NEW ir.ui.view: im_livechat.discuss_channel_view_kanban +NEW ir.ui.view: im_livechat.unit_embed_suite +DEL ir.ui.view: im_livechat.qunit_embed_suite +# NOTHING TO DO + +DEL mail.shortcode: im_livechat.mail_shortcode_data_hello (noupdate) +# NOTHING TO DO: handled in mail module diff --git a/openupgrade_scripts/scripts/mail/18.0.1.18/pre-migration.py b/openupgrade_scripts/scripts/mail/18.0.1.18/pre-migration.py index 2cf874a4c4aa..e93afd29e2ec 100644 --- a/openupgrade_scripts/scripts/mail/18.0.1.18/pre-migration.py +++ b/openupgrade_scripts/scripts/mail/18.0.1.18/pre-migration.py @@ -25,3 +25,12 @@ def migrate(env, version): openupgrade.rename_models(env.cr, model_renames) openupgrade.rename_tables(env.cr, table_renames) openupgrade.rename_fields(env, field_renames) + openupgrade.rename_xmlids( + env.cr, + [ + ( + "im_livechat.mail_shortcode_data_hello", + "mail.mail_canned_response_data_hello", + ) + ], + ) diff --git a/openupgrade_scripts/scripts/mail/18.0.1.18/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/mail/18.0.1.18/upgrade_analysis_work.txt index 470657e557a3..f129433ecf87 100644 --- a/openupgrade_scripts/scripts/mail/18.0.1.18/upgrade_analysis_work.txt +++ b/openupgrade_scripts/scripts/mail/18.0.1.18/upgrade_analysis_work.txt @@ -160,8 +160,9 @@ NEW ir.ui.view: mail.mail_scheduled_message_view_form DEL ir.ui.view: mail.mail_shortcode_view_form DEL ir.ui.view: mail.mail_shortcode_view_search DEL ir.ui.view: mail.mail_shortcode_view_tree -NEW mail.canned.response: mail.mail_canned_response_data_hello (noupdate) NEW res.groups: mail.group_mail_canned_response_admin (noupdate) NEW web_tour.tour: mail.discuss_channel_tour - # NOTHING TO DO + +NEW mail.canned.response: mail.mail_canned_response_data_hello (noupdate) +# DONE: pre-migration: renamed from im_livechat.mail_shortcode_data_hello