Skip to content

Commit c38a98f

Browse files
committed
[MIG] mail
and mark dependencies nothing to do
1 parent 756794f commit c38a98f

16 files changed

Lines changed: 774 additions & 7 deletions

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 & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# preexisting module names
1414
merged_modules = {
1515
# odoo
16+
"web_editor": "html_editor",
1617
# odoo/enterprise
1718
# OCA/...
1819
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
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)
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: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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+
bus / res.partner / im_status (char) : module is now 'mail' ('bus')
9+
bus / res.users / im_status (char) : module is now 'mail' ('bus')
10+
---XML records in module 'bus'---
11+
DEL ir.model.access: bus.access_bus_presence
12+
DEL ir.model.access: bus.access_bus_presence_portal
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: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---Models in module 'html_editor'---
2+
new model html_editor.converter.test
3+
new model html_editor.converter.test.sub
4+
model html.field.history.mixin (moved from web_editor) [abstract]
5+
---Fields in module 'html_editor'---
6+
html_editor / html_editor.converter.test / binary (binary) : NEW attachment: False
7+
html_editor / html_editor.converter.test / char (char) : NEW
8+
html_editor / html_editor.converter.test / date (date) : NEW
9+
html_editor / html_editor.converter.test / datetime (datetime) : NEW
10+
html_editor / html_editor.converter.test / float (float) : NEW
11+
html_editor / html_editor.converter.test / html (html) : NEW
12+
html_editor / html_editor.converter.test / integer (integer) : NEW
13+
html_editor / html_editor.converter.test / many2one (many2one) : NEW relation: html_editor.converter.test.sub
14+
html_editor / html_editor.converter.test / numeric (float) : NEW
15+
html_editor / html_editor.converter.test / selection_str (selection) : NEW selection_keys: ['A', 'B', 'C', 'D']
16+
html_editor / html_editor.converter.test / text (text) : NEW
17+
html_editor / html_editor.converter.test.sub / name (char) : NEW
18+
---XML records in module 'html_editor'---
19+
NEW ir.model.access: html_editor.access_html_editor_converter_test
20+
NEW ir.model.access: html_editor.access_html_editor_converter_test_sub
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---Models in module 'html_editor'---
2+
new model html_editor.converter.test
3+
new model html_editor.converter.test.sub
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 / html_editor.converter.test / binary (binary) : NEW attachment: False
13+
html_editor / html_editor.converter.test / char (char) : NEW
14+
html_editor / html_editor.converter.test / date (date) : NEW
15+
html_editor / html_editor.converter.test / datetime (datetime) : NEW
16+
html_editor / html_editor.converter.test / float (float) : NEW
17+
html_editor / html_editor.converter.test / html (html) : NEW
18+
html_editor / html_editor.converter.test / integer (integer) : NEW
19+
html_editor / html_editor.converter.test / many2one (many2one) : NEW relation: html_editor.converter.test.sub
20+
html_editor / html_editor.converter.test / numeric (float) : NEW
21+
html_editor / html_editor.converter.test / selection_str (selection) : NEW selection_keys: ['A', 'B', 'C', 'D']
22+
html_editor / html_editor.converter.test / text (text) : NEW
23+
html_editor / html_editor.converter.test.sub / name (char) : NEW
24+
25+
# NOTHING TO DO: test model
26+
27+
---XML records in module 'html_editor'---
28+
NEW ir.model.access: html_editor.access_html_editor_converter_test
29+
NEW ir.model.access: html_editor.access_html_editor_converter_test_sub
30+
31+
# NOTHING TO DO
Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
<?xml version='1.0' encoding='utf-8'?>
2+
<odoo>
3+
<record id="group_mail_canned_response_admin" model="res.groups">
4+
<field name="privilege_id" ref="res_groups_privilege_canned_response"/>
5+
</record>
6+
<record id="ir_cron_delete_notification" model="ir.cron">
7+
<field name="interval_type">months</field>
8+
<field name="name">Notification: Delete Notifications older than 6 Months</field>
9+
</record>
10+
<record id="ir_rule_discuss_channel_all" model="ir.rule">
11+
<field name="domain_force">
12+
[
13+
"|",
14+
"&amp;",
15+
("channel_type", "!=", "channel"),
16+
"|",
17+
("is_member", "=", True),
18+
("parent_channel_id.is_member", "=", True),
19+
"&amp;",
20+
("channel_type", "=", "channel"),
21+
"|",
22+
("group_public_id", "=", False),
23+
("group_public_id", "in", user.all_group_ids.ids),
24+
]
25+
</field>
26+
</record>
27+
<record id="ir_rule_discuss_channel_member_create_is_group_matching_all" model="ir.rule">
28+
<field name="domain_force">
29+
[
30+
('is_self', '=', True),
31+
('channel_id.channel_type', '=', 'channel'),
32+
'|',
33+
('channel_id.group_public_id', '=', False),
34+
('channel_id.group_public_id', 'in', user.all_group_ids.ids)
35+
]
36+
</field>
37+
</record>
38+
<record id="ir_rule_discuss_channel_member_create_is_group_matching_group_user" model="ir.rule">
39+
<field name="domain_force">
40+
[
41+
('is_self', '=', False),
42+
('channel_id.channel_type', '=', 'channel'),
43+
'|',
44+
('channel_id.group_public_id', '=', False),
45+
('channel_id.group_public_id', 'in', user.all_group_ids.ids)
46+
]
47+
</field>
48+
</record>
49+
<record id="ir_rule_discuss_channel_member_is_self_all" model="ir.rule">
50+
<field name="domain_force">
51+
[
52+
('is_self', '=', True),
53+
"|",
54+
("channel_id.channel_type", "!=", "channel"),
55+
"|",
56+
("channel_id.group_public_id", "=", False),
57+
("channel_id.group_public_id", "in", user.all_group_ids.ids),
58+
]
59+
</field>
60+
</record>
61+
<record id="ir_rule_discuss_channel_member_read_all" model="ir.rule">
62+
<field name="domain_force">
63+
[
64+
"|",
65+
"&amp;",
66+
("channel_id.channel_type", "!=", "channel"),
67+
"|",
68+
("channel_id.is_member", "=", True),
69+
("channel_id.parent_channel_id.is_member", "=", True),
70+
"&amp;",
71+
("channel_id.channel_type", "=", "channel"),
72+
"|",
73+
("channel_id.group_public_id", "=", False),
74+
("channel_id.group_public_id", "in", user.all_group_ids.ids),
75+
]
76+
</field>
77+
</record>
78+
<record id="ir_rule_mail_canned_response_admin" model="ir.rule">
79+
<field name="domain_force">[('is_shared', '=', True)]</field>
80+
<field name="name">Canned response: admin has all access on shared canned response</field>
81+
<field name="perm_create" eval="False"/>
82+
</record>
83+
<record id="ir_rule_mail_canned_response_user_read" model="ir.rule">
84+
<field name="domain_force">['|', ('create_uid', '=', user.id), ('group_ids', 'in', user.all_group_ids.ids)]</field>
85+
</record>
86+
<record id="mail_activity_data_call" model="mail.activity.type">
87+
<field name="summary">Call</field>
88+
</record>
89+
<record id="mail_activity_data_email" model="mail.activity.type">
90+
<field name="summary">Email</field>
91+
</record>
92+
<record id="mail_activity_data_meeting" model="mail.activity.type">
93+
<field name="summary">Meeting</field>
94+
</record>
95+
<record id="mail_activity_data_todo" model="mail.activity.type">
96+
<field name="sequence">2</field>
97+
<field name="summary">To-Do</field>
98+
</record>
99+
<record id="mail_activity_data_upload_document" model="mail.activity.type">
100+
<field name="name">Document</field>
101+
<field name="summary">Document</field>
102+
</record>
103+
</odoo>
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)