Skip to content
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
4 changes: 2 additions & 2 deletions docsource/modules170-180.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 | | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
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.load_data(env, "im_livechat", "18.0.1.0/noupdate_changes.xml")
openupgrade.delete_record_translations(
env.cr, "im_livechat", ["livechat_email_template"]
)
Original file line number Diff line number Diff line change
@@ -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
9 changes: 9 additions & 0 deletions openupgrade_scripts/scripts/mail/18.0.1.18/pre-migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)
],
)
Original file line number Diff line number Diff line change
Expand Up @@ -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