Skip to content

Commit 4bbc95a

Browse files
committed
[ADD] base_setup, web, web_editor, web_unsplash
1 parent 4806a6b commit 4bbc95a

File tree

12 files changed

+329
-67
lines changed

12 files changed

+329
-67
lines changed

addons/base_setup/migrations/13.0.1.0/openupgrade_analysis_work.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@
22
---Fields in module 'base_setup'---
33
---XML records in module 'base_setup'---
44
DEL ir.actions.client: web_settings_dashboard.web_settings_dashboard_action
5+
# NOTHING TO DO
56
DEL ir.ui.menu: web_settings_dashboard.web_dashboard_menu
7+
# DONE: Post-migration
68
NEW ir.ui.view: base_setup.assets_backend
79
DEL ir.ui.view: web_settings_dashboard.assets_backend
8-
DEL ir.ui.view: web_settings_dashboard.dashboard_qunit_suite
910
# NOTHING TO DO
11+
DEL ir.ui.view: web_settings_dashboard.dashboard_qunit_suite
12+
# DONE: Post-migration
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
2+
3+
from openupgradelib import openupgrade
4+
5+
unlink_by_xmlid = [
6+
'base_setup.web_dashboard_menu',
7+
'base_setup.dashboard_qunit_suite',
8+
]
9+
10+
11+
@openupgrade.migrate(use_env=True)
12+
def migrate(env, version):
13+
openupgrade.delete_records_safely_by_xml_id(env, unlink_by_xmlid)
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---Models in module 'web'---
2+
model report.layout (moved to base)
3+
# NOTHING TO DO
4+
5+
---Fields in module 'web'---
6+
web / ir.actions.act_window.view / view_mode (False) : NEW selection_keys: ['calendar', 'form', 'gantt', 'graph', 'kanban', 'pivot', 'qweb', 'tree'], mode: modify
7+
web / report.layout / __last_update (datetime) : module is now 'base' ('web')
8+
web / report.layout / display_name (char) : module is now 'base' ('web')
9+
web / report.layout / image (char) : module is now 'base' ('web')
10+
web / report.layout / pdf (char) : module is now 'base' ('web')
11+
web / report.layout / view_id (many2one) : module is now 'base' ('web')
12+
# NOTHING TO DO
13+
14+
---XML records in module 'web'---
15+
DEL ir.model.access: web.access_report_layout [renamed to base module]
16+
# DONE: in base module
17+
18+
NEW ir.ui.view: web._assets_common_minimal_js
19+
NEW ir.ui.view: web._assets_frontend_minimal_js
20+
NEW ir.ui.view: web.assets_common_lazy
21+
NEW ir.ui.view: web.assets_common_minimal_js
22+
NEW ir.ui.view: web.assets_frontend_lazy
23+
NEW ir.ui.view: web.assets_frontend_minimal_js
24+
NEW ir.ui.view: web.assets_tests
25+
NEW ir.ui.view: web.brand_promotion
26+
NEW ir.ui.view: web.brand_promotion_message
27+
NEW ir.ui.view: web.conditional_assets_tests
28+
NEW ir.ui.view: web.debug_icon
29+
NEW ir.ui.view: web.frontend_layout
30+
# NOTHING TO DO
31+
32+
DEL ir.ui.view: web.report_assets_editor
33+
# DONE: Post-migration
34+
35+
DEL res.company: base.main_company (noupdate)
36+
# NOTHING TO DO
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
2+
3+
from openupgradelib import openupgrade
4+
5+
unlink_by_xmlid = [
6+
'web.report_assets_editor',
7+
]
8+
9+
10+
@openupgrade.migrate(use_env=True)
11+
def migrate(env, version):
12+
openupgrade.delete_records_safely_by_xml_id(env, unlink_by_xmlid)
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---Models in module 'web_editor'---
2+
new model web_editor.assets [abstract]
3+
# NOTHING TO DO
4+
5+
---Fields in module 'web_editor'---
6+
web_editor / web_editor.converter.test / selection (selection) : DEL selection_keys: [1, 2, 3, 4]
7+
# NOTHING TO DO
8+
9+
---XML records in module 'web_editor'---
10+
NEW ir.ui.view: web_editor._assets_frontend_minimal_js
11+
NEW ir.ui.view: web_editor._assets_secondary_variables
12+
NEW ir.ui.view: web_editor.assets_wysiwyg
13+
NEW ir.ui.view: web_editor.compiled_assets_wysiwyg
14+
NEW ir.ui.view: web_editor.s_hr
15+
NEW ir.ui.view: web_editor.wysiwyg_iframe_editor_assets
16+
# NOTHING TO DO
17+
18+
DEL ir.ui.view: web_editor.FieldTextHtml
19+
DEL ir.ui.view: web_editor.assets_editor
20+
DEL ir.ui.view: web_editor.js_tests_assets
21+
DEL ir.ui.view: web_editor.layout
22+
DEL ir.ui.view: web_editor.webclient_bootstrap
23+
# DONE: Post-migration
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
2+
3+
from openupgradelib import openupgrade
4+
5+
unlink_by_xmlid = [
6+
'web_editor.FieldTextHtml',
7+
'web_editor.assets_editor',
8+
'web_editor.js_tests_assets',
9+
'web_editor.layout',
10+
'web_editor.webclient_bootstrap',
11+
]
12+
13+
14+
@openupgrade.migrate(use_env=True)
15+
def migrate(env, version):
16+
openupgrade.delete_records_safely_by_xml_id(env, unlink_by_xmlid)
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---Models in module 'web_unsplash'---
2+
---Fields in module 'web_unsplash'---
3+
---XML records in module 'web_unsplash'---
4+
NEW ir.ui.view: web_unsplash.assets_frontend
5+
# NOTHING TO DO
6+
DEL ir.ui.view: web_unsplash.assets_common
7+
# DONE: Pre-migration
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
2+
3+
from openupgradelib import openupgrade
4+
5+
xmlid_renames = [
6+
('web_unsplash.assets_common', 'web_unsplash.assets_frontend'),
7+
]
8+
9+
10+
@openupgrade.migrate(use_env=True)
11+
def migrate(env, version):
12+
openupgrade.rename_xmlids(env.cr, xmlid_renames)

0 commit comments

Comments
 (0)