Skip to content

Commit a579fd7

Browse files
committed
[MIG] mail
and mark dependencies nothing to do
1 parent fa57e22 commit a579fd7

File tree

9 files changed

+437
-8
lines changed

9 files changed

+437
-8
lines changed

docsource/modules180-190.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,15 @@ Module coverage 18.0 -> 19.0
8888
+---------------------------------------------------+----------------------+-------------------------------------------------+
8989
| base_install_request | | |
9090
+---------------------------------------------------+----------------------+-------------------------------------------------+
91-
| base_setup | | |
91+
| base_setup |Nothing to do | |
9292
+---------------------------------------------------+----------------------+-------------------------------------------------+
9393
| base_sparse_field | |No DB layout changes. |
9494
+---------------------------------------------------+----------------------+-------------------------------------------------+
9595
| base_vat | |No DB layout changes. |
9696
+---------------------------------------------------+----------------------+-------------------------------------------------+
9797
| board | |No DB layout changes. |
9898
+---------------------------------------------------+----------------------+-------------------------------------------------+
99-
| bus | | |
99+
| bus |Nothing to do | |
100100
+---------------------------------------------------+----------------------+-------------------------------------------------+
101101
| calendar | | |
102102
+---------------------------------------------------+----------------------+-------------------------------------------------+
@@ -228,7 +228,7 @@ Module coverage 18.0 -> 19.0
228228
+---------------------------------------------------+----------------------+-------------------------------------------------+
229229
| |new| html_builder | | |
230230
+---------------------------------------------------+----------------------+-------------------------------------------------+
231-
| html_editor | | |
231+
| html_editor |Nothing to do | |
232232
+---------------------------------------------------+----------------------+-------------------------------------------------+
233233
| http_routing | | |
234234
+---------------------------------------------------+----------------------+-------------------------------------------------+
@@ -700,7 +700,7 @@ Module coverage 18.0 -> 19.0
700700
+---------------------------------------------------+----------------------+-------------------------------------------------+
701701
| lunch | | |
702702
+---------------------------------------------------+----------------------+-------------------------------------------------+
703-
| mail | | |
703+
| mail |Done | |
704704
+---------------------------------------------------+----------------------+-------------------------------------------------+
705705
| mail_bot | | |
706706
+---------------------------------------------------+----------------------+-------------------------------------------------+
@@ -1114,13 +1114,13 @@ Module coverage 18.0 -> 19.0
11141114
+---------------------------------------------------+----------------------+-------------------------------------------------+
11151115
| utm | | |
11161116
+---------------------------------------------------+----------------------+-------------------------------------------------+
1117-
| web | | |
1117+
| web |Nothing to do | |
11181118
+---------------------------------------------------+----------------------+-------------------------------------------------+
1119-
| |del| web_editor | | |
1119+
| |del| web_editor | |Merged into html_editor |
11201120
+---------------------------------------------------+----------------------+-------------------------------------------------+
11211121
| web_hierarchy | |No DB layout changes. |
11221122
+---------------------------------------------------+----------------------+-------------------------------------------------+
1123-
| web_tour | | |
1123+
| web_tour |Nothing to do | |
11241124
+---------------------------------------------------+----------------------+-------------------------------------------------+
11251125
| web_unsplash | | |
11261126
+---------------------------------------------------+----------------------+-------------------------------------------------+

openupgrade_scripts/apriori.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
"l10n_in_edi_ewaybill": "l10n_in_ewaybill",
1010
"membership": "partnership",
1111
"pos_viva_wallet": "pos_viva_com",
12-
"web_editor": "html_builder",
1312
# odoo/enterprise
1413
# OCA/...
1514
}
@@ -43,6 +42,7 @@
4342
"pos_self_order_epson_printer": "pos_self_order",
4443
"sale_async_emails": "sale",
4544
"website_membership": "website_crm_partner_assign",
45+
"web_editor": "html_editor",
4646
# odoo/enterprise
4747
# OCA/...
4848
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---Models in module 'base_setup'---
2+
---Fields in module 'base_setup'---
3+
---XML records in module 'base_setup'---
4+
DEL ir.config_parameter: base_setup.setup_default_user_rights (noupdate)
5+
6+
# NOTHING TO DO: config parameter doesn't do anything
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---Models in module 'bus'---
2+
obsolete model bus.presence
3+
---Fields in module 'bus'---
4+
bus / bus.presence / last_poll (datetime) : DEL
5+
bus / bus.presence / last_presence (datetime) : DEL
6+
bus / bus.presence / status (selection) : DEL selection_keys: ['away', 'offline', 'online']
7+
bus / bus.presence / user_id (many2one) : DEL relation: res.users
8+
9+
# NOTHING TO DO: obsolete model
10+
11+
bus / res.partner / im_status (char) : module is now 'mail' ('bus')
12+
bus / res.users / im_status (char) : module is now 'mail' ('bus')
13+
14+
# NOTHING TO DO: transient fields
15+
16+
---XML records in module 'bus'---
17+
DEL ir.model.access: bus.access_bus_presence
18+
DEL ir.model.access: bus.access_bus_presence_portal
19+
20+
# NOTHING TO DO
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---Models in module 'html_editor'---
2+
new model html_editor.converter.test (renamed from web_editor.converter.test in module web_editor)
3+
new model html_editor.converter.test.sub (renamed from web_editor.converter.test.sub in module web_editor)
4+
5+
# NOTHING TO DO: test model
6+
7+
model html.field.history.mixin (moved from web_editor) [abstract]
8+
9+
# NOTHING TO DO: model entries will be taken care of by module merge
10+
11+
---Fields in module 'html_editor'---
12+
html_editor / web_editor.converter.test / _order : previously in module web_editor
13+
html_editor / web_editor.converter.test / binary (binary) : previously in module web_editor
14+
html_editor / web_editor.converter.test / char (char) : previously in module web_editor
15+
html_editor / web_editor.converter.test / date (date) : previously in module web_editor
16+
html_editor / web_editor.converter.test / datetime (datetime) : previously in module web_editor
17+
html_editor / web_editor.converter.test / display_name (char) : previously in module web_editor
18+
html_editor / web_editor.converter.test / float (float) : previously in module web_editor
19+
html_editor / web_editor.converter.test / html (html) : previously in module web_editor
20+
html_editor / web_editor.converter.test / integer (integer) : previously in module web_editor
21+
html_editor / web_editor.converter.test / many2one (many2one) : previously in module web_editor
22+
html_editor / web_editor.converter.test / numeric (float) : previously in module web_editor
23+
html_editor / web_editor.converter.test / selection_str (selection) : previously in module web_editor
24+
html_editor / web_editor.converter.test / text (text) : previously in module web_editor
25+
html_editor / web_editor.converter.test.sub / _order : previously in module web_editor
26+
html_editor / web_editor.converter.test.sub / display_name (char) : previously in module web_editor
27+
html_editor / web_editor.converter.test.sub / name (char) : previously in module web_editor
28+
web_editor / web_editor.converter.test / many2one (many2one) : relation is now 'html_editor.converter.test.sub' ('web_editor.converter.test.sub') [nothing to do]
29+
30+
# NOTHING TO DO: test model
31+
32+
---XML records in module 'html_editor'---
33+
NEW ir.model.access: html_editor.access_html_editor_converter_test
34+
NEW ir.model.access: html_editor.access_html_editor_converter_test_sub
35+
36+
# NOTHING TO DO
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Copyright 2025 Hunki Enterprises BV
2+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
3+
4+
from openupgradelib import openupgrade
5+
6+
7+
def _mail_message_link_preview(env):
8+
"""
9+
in v18, mail.link.preview linked directly to mail.message
10+
in v19, it's mail.link.preview <- mail.message.link.preview -> mail.message
11+
"""
12+
env.cr.execute(
13+
"""
14+
INSERT INTO
15+
mail_message_link_preview
16+
(link_preview_id, message_id, is_hidden)
17+
SELECT id, message_id, is_hidden FROM mail_link_preview
18+
"""
19+
)
20+
21+
22+
@openupgrade.migrate()
23+
def migrate(env, version):
24+
openupgrade.load_data(env, "mail", "19.0.1.19/noupdate_changes.xml")
25+
_mail_message_link_preview(env)
26+
openupgrade.delete_records_safely_by_xml_id(
27+
env,
28+
[
29+
"mail.ir_cron_discuss_users_settings_unmute",
30+
"mail.module_category_canned_response",
31+
],
32+
)

0 commit comments

Comments
 (0)