odoo-addon-openupgrade-scripts 18.0.1.0.0.14__py3-none-any.whl → 18.0.1.0.0.17__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- odoo/addons/openupgrade_scripts/apriori.py +34 -1
- odoo/addons/openupgrade_scripts/scripts/base/18.0.1.3/post-migration.py +7 -0
- odoo/addons/openupgrade_scripts/scripts/base/18.0.1.3/pre-migration.py +0 -1
- odoo/addons/openupgrade_scripts/scripts/base/18.0.1.3/upgrade_analysis_work.txt +1 -1
- odoo/addons/openupgrade_scripts/scripts/mail/18.0.1.18/post-migration.py +75 -0
- odoo/addons/openupgrade_scripts/scripts/mail/18.0.1.18/pre-migration.py +27 -0
- odoo/addons/openupgrade_scripts/scripts/mail/18.0.1.18/upgrade_analysis_work.txt +196 -0
- odoo/addons/openupgrade_scripts/scripts/mail/tests/data.py +7 -0
- odoo/addons/openupgrade_scripts/scripts/mail/tests/test_migration.py +28 -0
- {odoo_addon_openupgrade_scripts-18.0.1.0.0.14.dist-info → odoo_addon_openupgrade_scripts-18.0.1.0.0.17.dist-info}/METADATA +1 -1
- {odoo_addon_openupgrade_scripts-18.0.1.0.0.14.dist-info → odoo_addon_openupgrade_scripts-18.0.1.0.0.17.dist-info}/RECORD +13 -8
- {odoo_addon_openupgrade_scripts-18.0.1.0.0.14.dist-info → odoo_addon_openupgrade_scripts-18.0.1.0.0.17.dist-info}/WHEEL +0 -0
- {odoo_addon_openupgrade_scripts-18.0.1.0.0.14.dist-info → odoo_addon_openupgrade_scripts-18.0.1.0.0.17.dist-info}/top_level.txt +0 -0
@@ -4,8 +4,11 @@ to help the matching process
|
|
4
4
|
|
5
5
|
# Renamed modules is a mapping from old module name to new module name
|
6
6
|
renamed_modules = {
|
7
|
-
"account_accountant": "accountant",
|
8
7
|
# odoo
|
8
|
+
"l10n_es_pos_tbai": "l10n_es_edi_tbai_pos",
|
9
|
+
"mrp_subonctracting_landed_costs": "mrp_subcontracting_landed_costs",
|
10
|
+
"website_sale_picking": "website_sale_collect",
|
11
|
+
"website_form_project": "website_project",
|
9
12
|
# odoo/enterprise
|
10
13
|
# OCA/...
|
11
14
|
}
|
@@ -14,7 +17,30 @@ renamed_modules = {
|
|
14
17
|
# preexisting module names
|
15
18
|
merged_modules = {
|
16
19
|
# odoo
|
20
|
+
"account_audit_trail": "account",
|
21
|
+
"account_lock": "account",
|
22
|
+
"account_payment_term": "account",
|
23
|
+
"l10n_br_pix": "l10n_br",
|
24
|
+
"l10n_de_audit_trail": "l10n_de",
|
25
|
+
"l10n_dk_audit_trail": "l10n_dk",
|
26
|
+
"l10n_dk_bookkeeping": "account",
|
27
|
+
"l10n_es_edi_facturae_adm_centers": "l10n_es_edi_facturae",
|
28
|
+
"l10n_es_edi_facturae_invoice_period": "l10n_es_edi_facturae",
|
29
|
+
"l10n_es_edi_tbai_multi_refund": "l10n_es_edi_tbai",
|
30
|
+
"l10n_fr_fec": "l10n_fr",
|
31
|
+
"l10n_fr_invoice_addr": "l10n_fr_account",
|
32
|
+
"l10n_ro_efactura": "l10n_ro_edi",
|
33
|
+
"im_livechat_mail_bot": "mail_bot",
|
34
|
+
"payment_ogone": "payment_worldline",
|
35
|
+
"payment_sips": "payment_worldline",
|
36
|
+
"pos_sale_product_configurator": "pos_sale",
|
37
|
+
"sale_product_configurator": "sale",
|
38
|
+
"spreadsheet_dashboard_purchase": "spreadsheet_dashboard_purchase_stock",
|
39
|
+
"stock_landed_costs_company": "stock_landed_costs",
|
40
|
+
"website_sale_product_configurator": "website_sale",
|
17
41
|
# odoo/enterprise
|
42
|
+
# OCA/l10n-france
|
43
|
+
"l10n_fr_pos_cert_update_draft_order_line": "l10n_fr_pos_cert",
|
18
44
|
# OCA/sale-workflow
|
19
45
|
"sale_order_qty_change_no_recompute": "sale",
|
20
46
|
# OCA/...
|
@@ -23,6 +49,13 @@ merged_modules = {
|
|
23
49
|
# only used here for upgrade_analysis
|
24
50
|
renamed_models = {
|
25
51
|
# odoo
|
52
|
+
"l10n_es_edi_facturae_adm_centers.ac_role_type": ""
|
53
|
+
"l10n_es_edi_facturae.ac_role_type",
|
54
|
+
"mail.notification.web.push": "web.push",
|
55
|
+
"mail.partner.device": "mail.push.device",
|
56
|
+
"mail.shortcode": "mail.canned.response",
|
57
|
+
"pos.combo": "product.combo",
|
58
|
+
"pos.combo.line": "product.combo.item",
|
26
59
|
# OCA/...
|
27
60
|
}
|
28
61
|
|
@@ -11,3 +11,10 @@ def migrate(env, version):
|
|
11
11
|
openupgrade.delete_records_safely_by_xml_id(
|
12
12
|
env, ["base.module_sale_ebay", "base.module_website_twitter_wall"]
|
13
13
|
)
|
14
|
+
enterprise_old = env.ref("base.module_account_accountant")
|
15
|
+
env["ir.model.data"].search(
|
16
|
+
[("module", "=", "base"), ("name", "=", "module_account_accountant")]
|
17
|
+
).unlink()
|
18
|
+
enterprise_new = env.ref("base.module_accountant")
|
19
|
+
if enterprise_old.state in ("to install", "to upgrade"):
|
20
|
+
enterprise_new.state = "to install"
|
@@ -49,7 +49,6 @@ def migrate(cr, version):
|
|
49
49
|
openupgrade.update_module_names(cr, merged_modules.items(), merge_modules=True)
|
50
50
|
openupgrade.clean_transient_models(cr)
|
51
51
|
openupgrade.rename_xmlids(cr, _renamed_xmlids)
|
52
|
-
|
53
52
|
_fix_list_view_type(cr)
|
54
53
|
_fix_serbian_res_lang_record(cr)
|
55
54
|
_fix_company_layout_background(cr)
|
@@ -170,7 +170,7 @@ NEW ir.model.constraint: base.constraint_res_groups_check_api_key_duration
|
|
170
170
|
NEW ir.module.module: base.module_accountant (noupdate)
|
171
171
|
DEL ir.module.module: base.module_account_accountant (noupdate)
|
172
172
|
|
173
|
-
# DONE:
|
173
|
+
# DONE: post-migration: if enterprise module was installed, then install new one and remove old xmlid
|
174
174
|
|
175
175
|
DEL ir.module.module: base.module_sale_ebay (noupdate)
|
176
176
|
DEL ir.module.module: base.module_website_twitter_wall (noupdate)
|
@@ -0,0 +1,75 @@
|
|
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 discuss_channel_last_interest(env):
|
8
|
+
"""
|
9
|
+
Set last interest date of channel from newest message posted
|
10
|
+
"""
|
11
|
+
openupgrade.logged_query(
|
12
|
+
env.cr,
|
13
|
+
"""
|
14
|
+
UPDATE discuss_channel
|
15
|
+
SET last_interest_dt=mail_message.create_date
|
16
|
+
FROM
|
17
|
+
(
|
18
|
+
SELECT res_id, max(create_date) create_date
|
19
|
+
FROM mail_message
|
20
|
+
WHERE model='discuss.channel'
|
21
|
+
GROUP BY res_id
|
22
|
+
) mail_message
|
23
|
+
WHERE mail_message.res_id=discuss_channel.id
|
24
|
+
""",
|
25
|
+
)
|
26
|
+
|
27
|
+
|
28
|
+
def discuss_channel_member_new_message_separator(env):
|
29
|
+
"""
|
30
|
+
Set new_message_separator to the id of the first message after last_interest_id
|
31
|
+
"""
|
32
|
+
openupgrade.logged_query(
|
33
|
+
env.cr,
|
34
|
+
"""
|
35
|
+
UPDATE discuss_channel_member
|
36
|
+
SET new_message_separator=COALESCE(mail_message.id, 0)
|
37
|
+
FROM
|
38
|
+
(
|
39
|
+
SELECT res_id, min(mail_message.id) id
|
40
|
+
FROM mail_message
|
41
|
+
JOIN discuss_channel
|
42
|
+
ON discuss_channel.id=mail_message.res_id
|
43
|
+
AND mail_message.model='discuss.channel'
|
44
|
+
JOIN discuss_channel_member
|
45
|
+
ON discuss_channel_member.channel_id=discuss_channel.id
|
46
|
+
WHERE
|
47
|
+
mail_message.create_date > discuss_channel_member.last_interest_dt
|
48
|
+
GROUP BY mail_message.res_id
|
49
|
+
) mail_message
|
50
|
+
WHERE
|
51
|
+
discuss_channel_member.channel_id=mail_message.res_id
|
52
|
+
""",
|
53
|
+
)
|
54
|
+
|
55
|
+
|
56
|
+
def discuss_channel_member_unpin_dt(env):
|
57
|
+
"""
|
58
|
+
Set to now if v17 is_pinned has been unset
|
59
|
+
"""
|
60
|
+
openupgrade.logged_query(
|
61
|
+
env.cr,
|
62
|
+
"""
|
63
|
+
UPDATE discuss_channel_member
|
64
|
+
SET unpin_dt=CURRENT_TIMESTAMP
|
65
|
+
WHERE not is_pinned
|
66
|
+
""",
|
67
|
+
)
|
68
|
+
|
69
|
+
|
70
|
+
@openupgrade.migrate()
|
71
|
+
def migrate(env, version):
|
72
|
+
openupgrade.load_data(env, "mail", "18.0.1.18/noupdate_changes.xml")
|
73
|
+
discuss_channel_last_interest(env)
|
74
|
+
discuss_channel_member_new_message_separator(env)
|
75
|
+
discuss_channel_member_unpin_dt(env)
|
@@ -0,0 +1,27 @@
|
|
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
|
+
model_renames = [
|
7
|
+
("mail.notification.web.push", "web.push"),
|
8
|
+
("mail.partner.device", "mail.push.device"),
|
9
|
+
("mail.shortcode", "mail.canned.response"),
|
10
|
+
]
|
11
|
+
|
12
|
+
table_renames = [
|
13
|
+
("mail_notification_web_push", "web_push"),
|
14
|
+
("mail_partner_device", "mail_push_device"),
|
15
|
+
("mail_shortcode", "mail_canned_response"),
|
16
|
+
]
|
17
|
+
|
18
|
+
field_renames = [
|
19
|
+
("web.push", "web_push", "user_device", "mail_push_device_id"),
|
20
|
+
]
|
21
|
+
|
22
|
+
|
23
|
+
@openupgrade.migrate()
|
24
|
+
def migrate(env, version):
|
25
|
+
openupgrade.rename_models(env.cr, model_renames)
|
26
|
+
openupgrade.rename_tables(env.cr, table_renames)
|
27
|
+
openupgrade.rename_fields(env, field_renames)
|
@@ -0,0 +1,196 @@
|
|
1
|
+
---Models in module 'mail'---
|
2
|
+
obsolete model mail.notification.web.push
|
3
|
+
|
4
|
+
DONE: renamed to web.push
|
5
|
+
|
6
|
+
obsolete model mail.partner.device
|
7
|
+
|
8
|
+
DONE: renamed to mail.push.device
|
9
|
+
|
10
|
+
obsolete model mail.shortcode
|
11
|
+
|
12
|
+
DONE: renamed to mail.canned.response
|
13
|
+
|
14
|
+
new model mail.canned.response
|
15
|
+
|
16
|
+
DONE: renamed from mail.shortcode
|
17
|
+
|
18
|
+
new model mail.push
|
19
|
+
|
20
|
+
DONE: renamed from mail.notification.web.push
|
21
|
+
|
22
|
+
new model mail.push.device
|
23
|
+
|
24
|
+
DONE: renamed from mail.push.device
|
25
|
+
|
26
|
+
new model mail.scheduled.message
|
27
|
+
|
28
|
+
NOTHING TO DO
|
29
|
+
|
30
|
+
---Fields in module 'mail'---
|
31
|
+
mail / discuss.channel / from_message_id (many2one) : NEW relation: mail.message
|
32
|
+
|
33
|
+
# NOTHING TO DO: start message for subchannel, new functionality
|
34
|
+
|
35
|
+
mail / discuss.channel / last_interest_dt (datetime) : NEW
|
36
|
+
|
37
|
+
# DONE: filled from date of last message
|
38
|
+
|
39
|
+
mail / discuss.channel / parent_channel_id (many2one) : NEW relation: discuss.channel
|
40
|
+
mail / discuss.channel / sub_channel_ids (one2many) : NEW relation: discuss.channel
|
41
|
+
|
42
|
+
# NOTHING TO DO: new functionality
|
43
|
+
|
44
|
+
mail / discuss.channel.member / custom_notifications (selection): selection_keys is now '['all', 'mentions', 'no_notif']' ('['mentions', 'no_notif']')
|
45
|
+
|
46
|
+
# NOTHING TO DO: added value
|
47
|
+
|
48
|
+
mail / discuss.channel.member / is_minimized (boolean) : DEL
|
49
|
+
|
50
|
+
# NOTHING TO DO
|
51
|
+
|
52
|
+
mail / discuss.channel.member / is_pinned (boolean) : not stored anymore
|
53
|
+
mail / discuss.channel.member / is_pinned (boolean) : now a function
|
54
|
+
|
55
|
+
# DONE: see unpin_dt below
|
56
|
+
|
57
|
+
mail / discuss.channel.member / new_message_separator (integer): NEW required, hasdefault: default
|
58
|
+
|
59
|
+
# DONE: set to the id of the first message older than last_interest_dt
|
60
|
+
|
61
|
+
mail / discuss.channel.member / unpin_dt (datetime) : NEW
|
62
|
+
|
63
|
+
# DONE: set to now if v17 is_pinned has been unset
|
64
|
+
|
65
|
+
mail / ir.actions.act_window.view / view_mode (False) : selection_keys is now '['activity', 'calendar', 'form', 'graph', 'hierarchy', 'kanban', 'list', 'pivot']' ('['activity', 'calendar', 'form', 'gantt', 'graph', 'hierarchy', 'kanban', 'pivot', 'tree']')
|
66
|
+
mail / ir.ui.view / type (False) : selection_keys is now '['activity', 'calendar', 'form', 'graph', 'hierarchy', 'kanban', 'list', 'pivot', 'qweb', 'search']' ('['activity', 'calendar', 'form', 'gantt', 'graph', 'hierarchy', 'kanban', 'pivot', 'qweb', 'search', 'tree']')
|
67
|
+
mail / mail.activity / user_tz (selection) : NEW selection_keys: function, isrelated: related, stored
|
68
|
+
|
69
|
+
# NOTHING TO DO: change comes from base
|
70
|
+
|
71
|
+
mail / mail.activity.plan.template / delay_count (integer) : NEW hasdefault: default
|
72
|
+
mail / mail.activity.plan.template / delay_from (selection) : NEW required, selection_keys: ['after_plan_date', 'before_plan_date'], hasdefault: default
|
73
|
+
mail / mail.activity.plan.template / delay_unit (selection) : NEW required, selection_keys: ['days', 'months', 'weeks'], hasdefault: default
|
74
|
+
|
75
|
+
# NOTHING TO DO: new functionality
|
76
|
+
|
77
|
+
mail / mail.canned.response / description (char) : NEW
|
78
|
+
mail / mail.canned.response / group_ids (many2many) : NEW relation: res.groups
|
79
|
+
mail / mail.canned.response / is_shared (boolean) : NEW isfunction: function, stored
|
80
|
+
mail / mail.canned.response / last_used (datetime) : NEW
|
81
|
+
mail / mail.canned.response / source (char) : NEW required
|
82
|
+
mail / mail.canned.response / substitution (text) : NEW required
|
83
|
+
|
84
|
+
# NOTHING TO DO: field from renamed mail.shortcode/new functionality
|
85
|
+
|
86
|
+
mail / mail.link.preview / is_hidden (boolean) : NEW
|
87
|
+
|
88
|
+
# NOTHING TO DO: new funcitonality
|
89
|
+
|
90
|
+
mail / mail.notification.web.push / payload (text) : DEL
|
91
|
+
mail / mail.notification.web.push / user_device (many2one) : DEL relation: mail.partner.device, required
|
92
|
+
|
93
|
+
# NOTHING TO DO: model was renamed to mail.push
|
94
|
+
|
95
|
+
mail / mail.partner.device / endpoint (char) : DEL required
|
96
|
+
mail / mail.partner.device / expiration_time (datetime) : DEL
|
97
|
+
mail / mail.partner.device / keys (char) : DEL required
|
98
|
+
mail / mail.partner.device / partner_id (many2one) : DEL relation: res.partner, required
|
99
|
+
|
100
|
+
# NOTHING TO DO: model was renamed to mail.push.device
|
101
|
+
|
102
|
+
mail / mail.push / mail_push_device_id (many2one): NEW relation: mail.push.device, required
|
103
|
+
|
104
|
+
# DONE: renamed from mail.notification.web.push#user_device
|
105
|
+
|
106
|
+
mail / mail.push / payload (text) : NEW
|
107
|
+
|
108
|
+
# NOTHING TO DO
|
109
|
+
|
110
|
+
mail / mail.push.device / endpoint (char) : NEW required
|
111
|
+
mail / mail.push.device / expiration_time (datetime) : NEW
|
112
|
+
mail / mail.push.device / keys (char) : NEW required
|
113
|
+
mail / mail.push.device / partner_id (many2one) : NEW relation: res.partner, required, hasdefault: default
|
114
|
+
|
115
|
+
# NOTHING TO DO: model was renamed from mail.partner.device
|
116
|
+
|
117
|
+
mail / mail.scheduled.message / attachment_ids (many2many) : NEW relation: ir.attachment
|
118
|
+
mail / mail.scheduled.message / author_id (many2one) : NEW relation: res.partner, required
|
119
|
+
mail / mail.scheduled.message / body (html) : NEW
|
120
|
+
mail / mail.scheduled.message / is_note (boolean) : NEW hasdefault: default
|
121
|
+
mail / mail.scheduled.message / model (char) : NEW required
|
122
|
+
mail / mail.scheduled.message / notification_parameters (text): NEW
|
123
|
+
mail / mail.scheduled.message / partner_ids (many2many) : NEW relation: res.partner
|
124
|
+
mail / mail.scheduled.message / res_id (many2one_reference) : NEW relation: model, required
|
125
|
+
mail / mail.scheduled.message / scheduled_date (datetime) : NEW required
|
126
|
+
mail / mail.scheduled.message / subject (char) : NEW
|
127
|
+
|
128
|
+
# NOTHING TO DO: new functionality
|
129
|
+
|
130
|
+
mail / mail.shortcode / description (char) : DEL
|
131
|
+
mail / mail.shortcode / last_used (datetime) : DEL
|
132
|
+
mail / mail.shortcode / source (char) : DEL required
|
133
|
+
mail / mail.shortcode / substitution (text) : DEL required
|
134
|
+
|
135
|
+
# NOTHING TO DO: model was renamed to mail.canned.response
|
136
|
+
|
137
|
+
mail / res.users.settings / channel_notifications (selection): NEW selection_keys: ['all', 'no_notif']
|
138
|
+
mail / res.users.settings / mute_until_dt (datetime) : NEW
|
139
|
+
|
140
|
+
# NOTHING TO DO: new functionality
|
141
|
+
|
142
|
+
---XML records in module 'mail'---
|
143
|
+
NEW discuss.channel: mail.channel_admin (noupdate)
|
144
|
+
NEW ir.actions.act_window: mail.mail_activity_action_my
|
145
|
+
NEW ir.actions.act_window: mail.mail_canned_response_action
|
146
|
+
DEL ir.actions.act_window: mail.mail_shortcode_action
|
147
|
+
NEW ir.actions.act_window.view: mail.mail_activity_action_my_view_kanban
|
148
|
+
NEW ir.actions.act_window.view: mail.mail_activity_action_my_view_tree
|
149
|
+
NEW ir.actions.client: mail.discuss_call_settings_action
|
150
|
+
NEW ir.actions.client: mail.discuss_notification_settings_action
|
151
|
+
NEW ir.config_parameter: mail.restrict_template_rendering (noupdate)
|
152
|
+
NEW ir.cron: mail.ir_cron_discuss_users_settings_unmute (noupdate)
|
153
|
+
NEW ir.cron: mail.ir_cron_post_scheduled_message (noupdate)
|
154
|
+
NEW ir.model.access: mail.access_mail_canned_reponse
|
155
|
+
NEW ir.model.access: mail.access_mail_push_device_system
|
156
|
+
NEW ir.model.access: mail.access_mail_push_system
|
157
|
+
NEW ir.model.access: mail.access_mail_scheduled_message
|
158
|
+
DEL ir.model.access: mail.access_mail_compose_message_portal
|
159
|
+
DEL ir.model.access: mail.access_mail_notification_web_push
|
160
|
+
DEL ir.model.access: mail.access_mail_partner_device
|
161
|
+
DEL ir.model.access: mail.access_mail_shortcode
|
162
|
+
DEL ir.model.access: mail.access_mail_shortcode_portal
|
163
|
+
NEW ir.model.constraint: mail.constraint_discuss_channel_from_message_id_unique
|
164
|
+
NEW ir.model.constraint: mail.constraint_discuss_channel_sub_channel_no_group_public_id
|
165
|
+
NEW ir.model.constraint: mail.constraint_mail_push_device_endpoint_unique
|
166
|
+
DEL ir.model.constraint: mail.constraint_mail_partner_device_endpoint_unique
|
167
|
+
NEW ir.module.category: mail.module_category_canned_response (noupdate)
|
168
|
+
NEW ir.rule: mail.ir_rule_mail_canned_response_admin (noupdate)
|
169
|
+
NEW ir.rule: mail.ir_rule_mail_canned_response_user_read (noupdate)
|
170
|
+
NEW ir.rule: mail.ir_rule_mail_canned_response_user_update (noupdate)
|
171
|
+
NEW ir.rule: mail.ir_rule_mail_scheduled_message_user (noupdate)
|
172
|
+
NEW ir.ui.menu: mail.menu_call_settings
|
173
|
+
NEW ir.ui.menu: mail.menu_canned_responses
|
174
|
+
NEW ir.ui.menu: mail.menu_configuration
|
175
|
+
NEW ir.ui.menu: mail.menu_mail_activities_section
|
176
|
+
NEW ir.ui.menu: mail.menu_notification_settings
|
177
|
+
NEW ir.ui.view: mail.mail_activity_plan_view_kanban
|
178
|
+
NEW ir.ui.view: mail.mail_activity_plan_view_tree_detailed
|
179
|
+
NEW ir.ui.view: mail.mail_activity_type_view_kanban
|
180
|
+
NEW ir.ui.view: mail.mail_activity_view_kanban_open_target
|
181
|
+
NEW ir.ui.view: mail.mail_activity_view_tree_open_target
|
182
|
+
NEW ir.ui.view: mail.mail_attachment_links
|
183
|
+
NEW ir.ui.view: mail.mail_canned_response_view_form
|
184
|
+
NEW ir.ui.view: mail.mail_canned_response_view_search
|
185
|
+
NEW ir.ui.view: mail.mail_canned_response_view_tree
|
186
|
+
NEW ir.ui.view: mail.mail_message_subtype_view_search
|
187
|
+
NEW ir.ui.view: mail.mail_notification_invite
|
188
|
+
NEW ir.ui.view: mail.mail_scheduled_message_view_form
|
189
|
+
DEL ir.ui.view: mail.mail_shortcode_view_form
|
190
|
+
DEL ir.ui.view: mail.mail_shortcode_view_search
|
191
|
+
DEL ir.ui.view: mail.mail_shortcode_view_tree
|
192
|
+
NEW mail.canned.response: mail.mail_canned_response_data_hello (noupdate)
|
193
|
+
NEW res.groups: mail.group_mail_canned_response_admin (noupdate)
|
194
|
+
NEW web_tour.tour: mail.discuss_channel_tour
|
195
|
+
|
196
|
+
# NOTHING TO DO
|
@@ -0,0 +1,28 @@
|
|
1
|
+
from odoo.tests import TransactionCase
|
2
|
+
|
3
|
+
from odoo.addons.openupgrade_framework import openupgrade_test
|
4
|
+
|
5
|
+
|
6
|
+
@openupgrade_test
|
7
|
+
class TestBaseMigration(TransactionCase):
|
8
|
+
def test_new_message_separator(self):
|
9
|
+
"""
|
10
|
+
Test that discuss channel members get correct new_message_separator
|
11
|
+
"""
|
12
|
+
channel_member_demo = self.env["discuss.channel.member"].search(
|
13
|
+
[
|
14
|
+
("partner_id", "=", self.env.ref("base.user_demo").partner_id.id),
|
15
|
+
("channel_id", "=", self.env.ref("mail.channel_all_employees").id),
|
16
|
+
]
|
17
|
+
)
|
18
|
+
message = self.env["mail.message"].search(
|
19
|
+
[
|
20
|
+
(
|
21
|
+
"subject",
|
22
|
+
"=",
|
23
|
+
"This message should become demo's new_message_separator",
|
24
|
+
),
|
25
|
+
]
|
26
|
+
)
|
27
|
+
self.assertTrue(message)
|
28
|
+
self.assertEqual(channel_member_demo.new_message_separator, message.id)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
odoo/addons/openupgrade_scripts/README.rst,sha256=RuTBUdBI9hVP6kr2WJenFV-0J5l2tgUfzuOEtG9MyKQ,3179
|
2
2
|
odoo/addons/openupgrade_scripts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
3
3
|
odoo/addons/openupgrade_scripts/__manifest__.py,sha256=fZVzjupYlcmfrTQtiBu7wlaAqO4JWQncNAdQPEnpaCY,614
|
4
|
-
odoo/addons/openupgrade_scripts/apriori.py,sha256=
|
4
|
+
odoo/addons/openupgrade_scripts/apriori.py,sha256=98AFv18nuvQoJ6Q8QFOH-Xy446RKHIV0t5LwUyOwyKE,2215
|
5
5
|
odoo/addons/openupgrade_scripts/readme/CONFIGURE.md,sha256=rnx8ADTYzVUB93PIG3Lib0iWBrphSfVRs6RMikklf3M,238
|
6
6
|
odoo/addons/openupgrade_scripts/readme/DESCRIPTION.md,sha256=6hwHccovmE9cfaV7PQPvKUvNJa-f_Uc1wgXyL_SrYck,86
|
7
7
|
odoo/addons/openupgrade_scripts/readme/INSTALL.md,sha256=NDKVZRv0J8BTqcSTD7JwUXL_AY-cDJoegn5IUTbEOFk,113
|
@@ -33,10 +33,10 @@ odoo/addons/openupgrade_scripts/scripts/barcodes/18.0.2.0/upgrade_analysis.txt,s
|
|
33
33
|
odoo/addons/openupgrade_scripts/scripts/barcodes_gs1_nomenclature/18.0.1.0/upgrade_analysis.txt,sha256=M2_LcBV8IPACyjPo3ecgVy7GSuyFITBZRojGfi37HM4,198
|
34
34
|
odoo/addons/openupgrade_scripts/scripts/base/18.0.1.3/end-migration.py,sha256=95Xpwk74luLI0w2LYpf_L5bW8lTVmY_ExvlZoZ2VIYA,1210
|
35
35
|
odoo/addons/openupgrade_scripts/scripts/base/18.0.1.3/noupdate_changes.xml,sha256=zUXe0wLMoaCObZK9m8wnhTuXEUOMNs0zs04WIZx3T_w,16740
|
36
|
-
odoo/addons/openupgrade_scripts/scripts/base/18.0.1.3/post-migration.py,sha256=
|
37
|
-
odoo/addons/openupgrade_scripts/scripts/base/18.0.1.3/pre-migration.py,sha256=
|
36
|
+
odoo/addons/openupgrade_scripts/scripts/base/18.0.1.3/post-migration.py,sha256=T9RbmhHjbXKeELR74o322RYhYZQjHXkcSNXX1lU3ku0,840
|
37
|
+
odoo/addons/openupgrade_scripts/scripts/base/18.0.1.3/pre-migration.py,sha256=U29sUkoIjl5Kl1gqgsm7a9MQq5IgLTkx-KandMU3sK8,1518
|
38
38
|
odoo/addons/openupgrade_scripts/scripts/base/18.0.1.3/upgrade_analysis.txt,sha256=1bzcM5QrEqYY1OZeGdtnYiQlngL1yi4E-VfoMy03AZY,22307
|
39
|
-
odoo/addons/openupgrade_scripts/scripts/base/18.0.1.3/upgrade_analysis_work.txt,sha256=
|
39
|
+
odoo/addons/openupgrade_scripts/scripts/base/18.0.1.3/upgrade_analysis_work.txt,sha256=DtjRkyr9Xu9MZt-NvAOmUYdd9kgJErm-KOfzZOriBXc,23232
|
40
40
|
odoo/addons/openupgrade_scripts/scripts/base/18.0.1.3/upgrade_general_log.txt,sha256=V0Bru_iSmjE146pvTVlRx-lriuswc7jB4RUSJrsr3pE,31649
|
41
41
|
odoo/addons/openupgrade_scripts/scripts/base/tests/data_base_migration.py,sha256=G4qE5if25WvkEBxDp3S9QfVRFiD4MV7bZFeagvp5qL8,302
|
42
42
|
odoo/addons/openupgrade_scripts/scripts/base/tests/test_base_migration.py,sha256=jj1GMmV4SX_5q9t-PvIlD1pSR6_swUcpcKKe3r2ZT4E,703
|
@@ -248,7 +248,12 @@ odoo/addons/openupgrade_scripts/scripts/link_tracker/18.0.1.1/upgrade_analysis.t
|
|
248
248
|
odoo/addons/openupgrade_scripts/scripts/loyalty/18.0.1.0/upgrade_analysis.txt,sha256=6eXr36mMS3l5p9A0roax6V62DhNr1f97P2jP28UDjaE,1740
|
249
249
|
odoo/addons/openupgrade_scripts/scripts/lunch/18.0.1.0/upgrade_analysis.txt,sha256=I00Bu3CtG_X-c_-KpU7MGC0uZI306Mb6of6dMyB7nFg,283
|
250
250
|
odoo/addons/openupgrade_scripts/scripts/mail/18.0.1.18/noupdate_changes.xml,sha256=nHtVWU3RSjfpW7QN8N0Mt0qqVqHBC3-Pz7_po695_bs,4391
|
251
|
+
odoo/addons/openupgrade_scripts/scripts/mail/18.0.1.18/post-migration.py,sha256=ah3wIXBfT53b5qA06ON35OHW3pO90nkmi3mF2ArRDK8,2155
|
252
|
+
odoo/addons/openupgrade_scripts/scripts/mail/18.0.1.18/pre-migration.py,sha256=f80SUVpFqi-VjM27GLeZ59YQQD9wwsKdIKsKOi_rRZE,772
|
251
253
|
odoo/addons/openupgrade_scripts/scripts/mail/18.0.1.18/upgrade_analysis.txt,sha256=EJZz1SAYiLQ7uxWVNlbA2yenN74-NUWys2otR3IMwIE,8664
|
254
|
+
odoo/addons/openupgrade_scripts/scripts/mail/18.0.1.18/upgrade_analysis_work.txt,sha256=IElQO3vxlSGT8g7qCSJ1m_2c-puPHflj19GVpU7ICBE,9845
|
255
|
+
odoo/addons/openupgrade_scripts/scripts/mail/tests/data.py,sha256=Jd66WgwKgh_X3RLtCG2G-rLdrS5HyL4SjOwdjHIWuwk,218
|
256
|
+
odoo/addons/openupgrade_scripts/scripts/mail/tests/test_migration.py,sha256=JeXw6t5F7Zv_6vXew1Dipetq2IuW3i7XGc6lHO47KTE,959
|
252
257
|
odoo/addons/openupgrade_scripts/scripts/mail_bot/18.0.1.2/upgrade_analysis.txt,sha256=J6pkussDI9FVsqXmpzSOfURwC10lyimTuFnkyVslsW4,484
|
253
258
|
odoo/addons/openupgrade_scripts/scripts/mail_group/18.0.1.1/upgrade_analysis.txt,sha256=CONKKK3nnglrz9wO28GSPqCBM1PN77HVG2lBiT4PgRE,153
|
254
259
|
odoo/addons/openupgrade_scripts/scripts/mail_plugin/18.0.1.0/upgrade_analysis.txt,sha256=OuDqjVni5xXOyXL5xwE5xuCIqVKerYmwyNLUiJF-Je4,156
|
@@ -453,7 +458,7 @@ odoo/addons/openupgrade_scripts/scripts/website_slides_survey/18.0.1.0/upgrade_a
|
|
453
458
|
odoo/addons/openupgrade_scripts/static/description/banner.png,sha256=KTIBu4gfxeZVw9zjs_fivTgFEOeaAorlBxajmCA1p6k,26859
|
454
459
|
odoo/addons/openupgrade_scripts/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
|
455
460
|
odoo/addons/openupgrade_scripts/static/description/index.html,sha256=Jc0qAThlH5WnoSq6vPamjC8WyMkdo_9zkhDuU1qW1VI,12722
|
456
|
-
odoo_addon_openupgrade_scripts-18.0.1.0.0.
|
457
|
-
odoo_addon_openupgrade_scripts-18.0.1.0.0.
|
458
|
-
odoo_addon_openupgrade_scripts-18.0.1.0.0.
|
459
|
-
odoo_addon_openupgrade_scripts-18.0.1.0.0.
|
461
|
+
odoo_addon_openupgrade_scripts-18.0.1.0.0.17.dist-info/METADATA,sha256=v6WdlkfN8S3gji0Qwz7-z3uEI_v8npccHRws_2d6msc,3774
|
462
|
+
odoo_addon_openupgrade_scripts-18.0.1.0.0.17.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
|
463
|
+
odoo_addon_openupgrade_scripts-18.0.1.0.0.17.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
|
464
|
+
odoo_addon_openupgrade_scripts-18.0.1.0.0.17.dist-info/RECORD,,
|
File without changes
|