odoo-addon-openupgrade-scripts 18.0.1.0.0.8__py3-none-any.whl → 18.0.1.0.0.11__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/scripts/uom/18.0.1.0/upgrade_analysis_work.txt +5 -0
- odoo/addons/openupgrade_scripts/scripts/web_tour/18.0.1.0/end-migration.py +21 -0
- odoo/addons/openupgrade_scripts/scripts/web_tour/18.0.1.0/pre-migration.py +17 -0
- odoo/addons/openupgrade_scripts/scripts/web_tour/18.0.1.0/upgrade_analysis_work.txt +42 -0
- {odoo_addon_openupgrade_scripts-18.0.1.0.0.8.dist-info → odoo_addon_openupgrade_scripts-18.0.1.0.0.11.dist-info}/METADATA +1 -1
- {odoo_addon_openupgrade_scripts-18.0.1.0.0.8.dist-info → odoo_addon_openupgrade_scripts-18.0.1.0.0.11.dist-info}/RECORD +8 -4
- {odoo_addon_openupgrade_scripts-18.0.1.0.0.8.dist-info → odoo_addon_openupgrade_scripts-18.0.1.0.0.11.dist-info}/WHEEL +0 -0
- {odoo_addon_openupgrade_scripts-18.0.1.0.0.8.dist-info → odoo_addon_openupgrade_scripts-18.0.1.0.0.11.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,21 @@
|
|
1
|
+
from openupgradelib import openupgrade
|
2
|
+
|
3
|
+
|
4
|
+
@openupgrade.migrate()
|
5
|
+
def migrate(env, version=None):
|
6
|
+
"""
|
7
|
+
Set consumed tours from legacy table after migration
|
8
|
+
"""
|
9
|
+
openupgrade.logged_query(
|
10
|
+
env.cr,
|
11
|
+
f"""
|
12
|
+
INSERT INTO res_users_web_tour_tour_rel
|
13
|
+
(res_users_id, web_tour_tour_id)
|
14
|
+
SELECT legacy_table.user_id, web_tour_tour.id
|
15
|
+
FROM
|
16
|
+
{openupgrade.get_legacy_name('web_tour_tour')} legacy_table,
|
17
|
+
web_tour_tour
|
18
|
+
WHERE web_tour_tour.name=legacy_table.name
|
19
|
+
ON CONFLICT DO NOTHING
|
20
|
+
""",
|
21
|
+
)
|
@@ -0,0 +1,17 @@
|
|
1
|
+
from openupgradelib import openupgrade
|
2
|
+
|
3
|
+
|
4
|
+
@openupgrade.migrate()
|
5
|
+
def migrate(env, version=None):
|
6
|
+
"""
|
7
|
+
web_tour.tour used to be just a marker which tour has been run for which user,
|
8
|
+
with a new record for every user who finished the tour.
|
9
|
+
In v18 tours are unique by name and have a many2many field for recording which
|
10
|
+
users have completed it.
|
11
|
+
Move the v17 table out of the way so that we can set tours as consumed in
|
12
|
+
end-migration (matched by tour name, if a tour name changes from v17 to v18,
|
13
|
+
the migration script will have to rename it in the legacy table - no core module
|
14
|
+
does this)
|
15
|
+
"""
|
16
|
+
openupgrade.remove_tables_fks(env.cr, ["web_tour_tour"])
|
17
|
+
openupgrade.rename_tables(env.cr, [("web_tour_tour", None)])
|
@@ -0,0 +1,42 @@
|
|
1
|
+
---Models in module 'web_tour'---
|
2
|
+
new model web_tour.tour.step
|
3
|
+
---Fields in module 'web_tour'---
|
4
|
+
web_tour / res.users / tour_enabled (boolean) : NEW hasdefault: compute
|
5
|
+
web_tour / web_tour.tour / _order : _order is now 'sequence, name, id' ('id')
|
6
|
+
web_tour / web_tour.tour / custom (boolean) : NEW
|
7
|
+
web_tour / web_tour.tour / rainbow_man_message (html) : NEW hasdefault: default
|
8
|
+
web_tour / web_tour.tour / sequence (integer) : NEW hasdefault: default
|
9
|
+
web_tour / web_tour.tour / step_ids (one2many) : NEW relation: web_tour.tour.step
|
10
|
+
web_tour / web_tour.tour / url (char) : NEW hasdefault: default
|
11
|
+
|
12
|
+
NOTHING TO DO
|
13
|
+
|
14
|
+
web_tour / web_tour.tour / user_consumed_ids (many2many) : NEW relation: res.users
|
15
|
+
web_tour / web_tour.tour / user_id (many2one) : DEL relation: res.users
|
16
|
+
|
17
|
+
DONE: move old table aside in pre-migration, set user_consumed_ids from this table and delete it in end migration
|
18
|
+
|
19
|
+
web_tour / web_tour.tour.step / content (char) : NEW
|
20
|
+
web_tour / web_tour.tour.step / run (char) : NEW
|
21
|
+
web_tour / web_tour.tour.step / sequence (integer) : NEW
|
22
|
+
web_tour / web_tour.tour.step / tour_id (many2one) : NEW relation: web_tour.tour, required
|
23
|
+
web_tour / web_tour.tour.step / trigger (char) : NEW required
|
24
|
+
---XML records in module 'web_tour'---
|
25
|
+
NEW ir.actions.act_window: web_tour.tour_action
|
26
|
+
DEL ir.actions.act_window: web_tour.edit_tour_action
|
27
|
+
NEW ir.actions.server: web_tour.tour_export_js_action
|
28
|
+
NEW ir.model.access: web_tour.access_web_tour_tour_readonly
|
29
|
+
NEW ir.model.access: web_tour.access_web_tour_tour_step_admin
|
30
|
+
NEW ir.model.access: web_tour.access_web_tour_tour_step_readonly
|
31
|
+
DEL ir.model.access: web_tour.access_web_tour_tour
|
32
|
+
NEW ir.model.constraint: web_tour.constraint_web_tour_tour_uniq_name
|
33
|
+
DEL ir.rule: web_tour.own_tours
|
34
|
+
NEW ir.ui.view: web_tour.res_users_view_form
|
35
|
+
NEW ir.ui.view: web_tour.tour_form
|
36
|
+
NEW ir.ui.view: web_tour.tour_list
|
37
|
+
NEW ir.ui.view: web_tour.tour_search
|
38
|
+
DEL ir.ui.view: web_tour.edit_tour_form
|
39
|
+
DEL ir.ui.view: web_tour.edit_tour_list
|
40
|
+
DEL ir.ui.view: web_tour.edit_tour_search
|
41
|
+
|
42
|
+
NOTHING TO DO
|
@@ -396,13 +396,17 @@ odoo/addons/openupgrade_scripts/scripts/survey/18.0.3.7/noupdate_changes.xml,sha
|
|
396
396
|
odoo/addons/openupgrade_scripts/scripts/survey/18.0.3.7/upgrade_analysis.txt,sha256=qlo7tDfsCDsXQdcWR98lfhKL9fc5R4BVoGJR_WKJ4Hs,3081
|
397
397
|
odoo/addons/openupgrade_scripts/scripts/transifex/18.0.1.0/upgrade_analysis.txt,sha256=9js2BMOhvgwKRc7amc1kIms0LLC9u6-SmqbXAl4MlUk,150
|
398
398
|
odoo/addons/openupgrade_scripts/scripts/uom/18.0.1.0/upgrade_analysis.txt,sha256=QNpF0ZKtfvAQ5CYA-S7iCVvfMBnNQZXwNhgtA6am5JM,132
|
399
|
+
odoo/addons/openupgrade_scripts/scripts/uom/18.0.1.0/upgrade_analysis_work.txt,sha256=AqU3yszlr_TyWcTURJB9vZfFuKg8ZeGnJ5ncywVygyE,148
|
399
400
|
odoo/addons/openupgrade_scripts/scripts/utm/18.0.1.1/upgrade_analysis.txt,sha256=trVlh5zXJvNHkehM5O7jbmKgI7sLf8tsUW2nubBuwww,223
|
400
401
|
odoo/addons/openupgrade_scripts/scripts/utm/18.0.1.1/upgrade_analysis_work.txt,sha256=l5ITaDqA6aVqJ_Rgs2NFTGw7JJDtpOHXBThdOerIIyQ,239
|
401
402
|
odoo/addons/openupgrade_scripts/scripts/web/18.0.1.0/upgrade_analysis.txt,sha256=lMeiG5TtSsM1oIRhCPfeZMSIJbc9sqsh5rMWllWLD8Q,427
|
402
403
|
odoo/addons/openupgrade_scripts/scripts/web/18.0.1.0/upgrade_analysis_work.txt,sha256=H5hWDif6hhChIIQoewaH5rk_Gh0bmhRR3o0ncUCHyyw,468
|
403
404
|
odoo/addons/openupgrade_scripts/scripts/web_editor/18.0.1.0/upgrade_analysis.txt,sha256=XwWLr4ECjOl0-2rW3R4CgsJmj4QYYo0vY9kgk3ql6Rc,757
|
404
405
|
odoo/addons/openupgrade_scripts/scripts/web_hierarchy/18.0.1.0/upgrade_analysis.txt,sha256=XMF1MYAL4CZcW5-lcpiQd8TMEdf0_TN9FBF79siwF9g,664
|
406
|
+
odoo/addons/openupgrade_scripts/scripts/web_tour/18.0.1.0/end-migration.py,sha256=3a9vlJg7n_XYwsb-HWu9hec6gGNazxsRPMK-cjHUpKs,576
|
407
|
+
odoo/addons/openupgrade_scripts/scripts/web_tour/18.0.1.0/pre-migration.py,sha256=pMcHF6q-I4vEHS0XeYDKDBRiF4LprKYoM0OSqivhQMc,752
|
405
408
|
odoo/addons/openupgrade_scripts/scripts/web_tour/18.0.1.0/upgrade_analysis.txt,sha256=yXOfMk5BXOVBVAg6ROr3geQWUErfTrWcV0npI3aq1Zc,2226
|
409
|
+
odoo/addons/openupgrade_scripts/scripts/web_tour/18.0.1.0/upgrade_analysis_work.txt,sha256=ghNCJaPp5qyUZaw52zJ7W6YC0n6U0IbpUR0hPEOdamY,2373
|
406
410
|
odoo/addons/openupgrade_scripts/scripts/website/18.0.1.0/upgrade_analysis.txt,sha256=dTglvaoSlCVU3m8zMQITZ1hKKHqnMnFMJbSv-uFuh18,9903
|
407
411
|
odoo/addons/openupgrade_scripts/scripts/website_blog/18.0.1.1/upgrade_analysis.txt,sha256=qhbcPVY5UzFSgPey9shgJNHq4vSPYF_BKmIGrIk77IM,492
|
408
412
|
odoo/addons/openupgrade_scripts/scripts/website_crm/18.0.2.1/upgrade_analysis.txt,sha256=y6ZeGUo8Je1ompJpIV8Yn_mMeHTD4TtOGTAnwAArIHo,156
|
@@ -448,7 +452,7 @@ odoo/addons/openupgrade_scripts/scripts/website_slides_survey/18.0.1.0/upgrade_a
|
|
448
452
|
odoo/addons/openupgrade_scripts/static/description/banner.png,sha256=KTIBu4gfxeZVw9zjs_fivTgFEOeaAorlBxajmCA1p6k,26859
|
449
453
|
odoo/addons/openupgrade_scripts/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
|
450
454
|
odoo/addons/openupgrade_scripts/static/description/index.html,sha256=Jc0qAThlH5WnoSq6vPamjC8WyMkdo_9zkhDuU1qW1VI,12722
|
451
|
-
odoo_addon_openupgrade_scripts-18.0.1.0.0.
|
452
|
-
odoo_addon_openupgrade_scripts-18.0.1.0.0.
|
453
|
-
odoo_addon_openupgrade_scripts-18.0.1.0.0.
|
454
|
-
odoo_addon_openupgrade_scripts-18.0.1.0.0.
|
455
|
+
odoo_addon_openupgrade_scripts-18.0.1.0.0.11.dist-info/METADATA,sha256=ojs0aIqKkaReXgtfXjxJ9KA2xQtCBCcV_KsAwYRvx7Q,3774
|
456
|
+
odoo_addon_openupgrade_scripts-18.0.1.0.0.11.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
|
457
|
+
odoo_addon_openupgrade_scripts-18.0.1.0.0.11.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
|
458
|
+
odoo_addon_openupgrade_scripts-18.0.1.0.0.11.dist-info/RECORD,,
|
File without changes
|