-
-
Notifications
You must be signed in to change notification settings - Fork 798
[19.0][MIG] mail+dependencies #5466
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
MiquelRForgeFlow
merged 2 commits into
OCA:19.0
from
hbrunn:19.0-initialize+openupgrade_framework+base+mail+dependencies
Feb 9, 2026
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
openupgrade_scripts/scripts/base_setup/19.0.1.0/post-migration.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| # Copyright 2026 Hunki Enterprises BV | ||
| # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
|
|
||
| from openupgradelib import openupgrade | ||
|
|
||
|
|
||
| @openupgrade.migrate() | ||
| def migrate(env, version): | ||
| openupgrade.delete_records_safely_by_xml_id( | ||
| env, | ||
| [ | ||
| "base_setup.setup_default_user_rights", | ||
| ], | ||
| ) |
6 changes: 6 additions & 0 deletions
6
openupgrade_scripts/scripts/base_setup/19.0.1.0/upgrade_analysis_work.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| ---Models in module 'base_setup'--- | ||
| ---Fields in module 'base_setup'--- | ||
| ---XML records in module 'base_setup'--- | ||
| DEL ir.config_parameter: base_setup.setup_default_user_rights (noupdate) | ||
MiquelRForgeFlow marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| # DONE: deleted in post-migration | ||
20 changes: 20 additions & 0 deletions
20
openupgrade_scripts/scripts/bus/19.0.1.0/upgrade_analysis_work.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| ---Models in module 'bus'--- | ||
| obsolete model bus.presence | ||
| ---Fields in module 'bus'--- | ||
| bus / bus.presence / last_poll (datetime) : DEL | ||
| bus / bus.presence / last_presence (datetime) : DEL | ||
| bus / bus.presence / status (selection) : DEL selection_keys: ['away', 'offline', 'online'] | ||
| bus / bus.presence / user_id (many2one) : DEL relation: res.users | ||
|
|
||
| # NOTHING TO DO: obsolete model | ||
|
|
||
| bus / res.partner / im_status (char) : module is now 'mail' ('bus') | ||
| bus / res.users / im_status (char) : module is now 'mail' ('bus') | ||
|
|
||
| # NOTHING TO DO: transient fields | ||
|
|
||
| ---XML records in module 'bus'--- | ||
| DEL ir.model.access: bus.access_bus_presence | ||
| DEL ir.model.access: bus.access_bus_presence_portal | ||
|
|
||
| # NOTHING TO DO |
36 changes: 36 additions & 0 deletions
36
openupgrade_scripts/scripts/html_editor/19.0.1.0/upgrade_analysis_work.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| ---Models in module 'html_editor'--- | ||
| new model html_editor.converter.test (renamed from web_editor.converter.test in module web_editor) | ||
| new model html_editor.converter.test.sub (renamed from web_editor.converter.test.sub in module web_editor) | ||
|
|
||
| # NOTHING TO DO: test model | ||
|
|
||
| model html.field.history.mixin (moved from web_editor) [abstract] | ||
|
|
||
| # NOTHING TO DO: model entries will be taken care of by module merge | ||
|
|
||
| ---Fields in module 'html_editor'--- | ||
| html_editor / web_editor.converter.test / _order : previously in module web_editor | ||
| html_editor / web_editor.converter.test / binary (binary) : previously in module web_editor | ||
| html_editor / web_editor.converter.test / char (char) : previously in module web_editor | ||
| html_editor / web_editor.converter.test / date (date) : previously in module web_editor | ||
| html_editor / web_editor.converter.test / datetime (datetime) : previously in module web_editor | ||
| html_editor / web_editor.converter.test / display_name (char) : previously in module web_editor | ||
| html_editor / web_editor.converter.test / float (float) : previously in module web_editor | ||
| html_editor / web_editor.converter.test / html (html) : previously in module web_editor | ||
| html_editor / web_editor.converter.test / integer (integer) : previously in module web_editor | ||
| html_editor / web_editor.converter.test / many2one (many2one) : previously in module web_editor | ||
| html_editor / web_editor.converter.test / numeric (float) : previously in module web_editor | ||
| html_editor / web_editor.converter.test / selection_str (selection) : previously in module web_editor | ||
| html_editor / web_editor.converter.test / text (text) : previously in module web_editor | ||
| html_editor / web_editor.converter.test.sub / _order : previously in module web_editor | ||
| html_editor / web_editor.converter.test.sub / display_name (char) : previously in module web_editor | ||
| html_editor / web_editor.converter.test.sub / name (char) : previously in module web_editor | ||
| web_editor / web_editor.converter.test / many2one (many2one) : relation is now 'html_editor.converter.test.sub' ('web_editor.converter.test.sub') [nothing to do] | ||
|
|
||
| # NOTHING TO DO: test model | ||
|
|
||
| ---XML records in module 'html_editor'--- | ||
| NEW ir.model.access: html_editor.access_html_editor_converter_test | ||
| NEW ir.model.access: html_editor.access_html_editor_converter_test_sub | ||
|
|
||
| # NOTHING TO DO |
32 changes: 32 additions & 0 deletions
32
openupgrade_scripts/scripts/mail/19.0.1.19/post-migration.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| # Copyright 2025 Hunki Enterprises BV | ||
| # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
|
|
||
| from openupgradelib import openupgrade | ||
|
|
||
|
|
||
| def _mail_message_link_preview(env): | ||
| """ | ||
| in v18, mail.link.preview linked directly to mail.message | ||
| in v19, it's mail.link.preview <- mail.message.link.preview -> mail.message | ||
| """ | ||
| env.cr.execute( | ||
| """ | ||
| INSERT INTO | ||
| mail_message_link_preview | ||
| (link_preview_id, message_id, is_hidden) | ||
| SELECT id, message_id, is_hidden FROM mail_link_preview | ||
| """ | ||
| ) | ||
|
|
||
|
|
||
| @openupgrade.migrate() | ||
| def migrate(env, version): | ||
| openupgrade.load_data(env, "mail", "19.0.1.19/noupdate_changes.xml") | ||
| _mail_message_link_preview(env) | ||
| openupgrade.delete_records_safely_by_xml_id( | ||
| env, | ||
| [ | ||
| "mail.ir_cron_discuss_users_settings_unmute", | ||
| "mail.module_category_canned_response", | ||
| ], | ||
| ) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.