odoo-addon-openupgrade-scripts 16.0.1.0.5.2__py3-none-any.whl → 16.0.1.0.5.5__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/base/16.0.1.3/pre-migration.py +2 -0
- odoo/addons/openupgrade_scripts/scripts/base/16.0.1.3/upgrade_analysis_work.txt +3 -1
- odoo/addons/openupgrade_scripts/scripts/website/16.0.1.0/end-migration.py +13 -0
- odoo/addons/openupgrade_scripts/scripts/website/16.0.1.0/post-migration.py +6 -0
- {odoo_addon_openupgrade_scripts-16.0.1.0.5.2.dist-info → odoo_addon_openupgrade_scripts-16.0.1.0.5.5.dist-info}/METADATA +1 -1
- {odoo_addon_openupgrade_scripts-16.0.1.0.5.2.dist-info → odoo_addon_openupgrade_scripts-16.0.1.0.5.5.dist-info}/RECORD +8 -8
- {odoo_addon_openupgrade_scripts-16.0.1.0.5.2.dist-info → odoo_addon_openupgrade_scripts-16.0.1.0.5.5.dist-info}/WHEEL +1 -1
- {odoo_addon_openupgrade_scripts-16.0.1.0.5.2.dist-info → odoo_addon_openupgrade_scripts-16.0.1.0.5.5.dist-info}/top_level.txt +0 -0
@@ -168,5 +168,7 @@ def migrate(cr, version):
|
|
168
168
|
"USING ir_ui_view v "
|
169
169
|
"WHERE r.view_id=v.id AND v.inherit_id IS NOT NULL AND v.mode != 'primary'"
|
170
170
|
)
|
171
|
+
# pre-create res.partner~company_registry
|
172
|
+
openupgrade.logged_query(cr, "ALTER TABLE res_partner ADD company_registry VARCHAR")
|
171
173
|
# update all translatable fields
|
172
174
|
update_translatable_fields(cr)
|
@@ -28,7 +28,6 @@ base / res.company / active (boolean) : NEW ha
|
|
28
28
|
base / res.company / company_registry (char) : not stored anymore
|
29
29
|
base / res.company / company_registry (char) : now related
|
30
30
|
base / res.company / font (selection) : selection_keys is now '['Lato', 'Montserrat', 'Open_Sans', 'Oswald', 'Raleway', 'Roboto', 'Tajawal']' ('['Lato', 'Montserrat', 'Open_Sans', 'Oswald', 'Raleway', 'Roboto']')
|
31
|
-
base / res.partner / company_registry (char) : NEW hasdefault: compute
|
32
31
|
base / res.partner / credit_limit (float) : module is now 'account' ('base')
|
33
32
|
base / res.partner / credit_limit (float) : not stored anymore
|
34
33
|
base / res.partner.bank / allow_out_payment (boolean) : NEW hasdefault: default
|
@@ -40,6 +39,9 @@ base / res.users.deletion / user_id_int (integer) : NEW is
|
|
40
39
|
|
41
40
|
# NOTHING TO DO
|
42
41
|
|
42
|
+
base / res.partner / company_registry (char) : NEW hasdefault: compute
|
43
|
+
# DONE: pre-migration: Pre-create the field for not triggering the compute. Further modules scripts (right now only l10n_be and l10n_ro seems to override the method) have to include the computation, or trigger the computation on end-migration.
|
44
|
+
|
43
45
|
---XML records in module 'base'---
|
44
46
|
DEL ir.actions.act_window: base.action_translation
|
45
47
|
DEL ir.actions.act_window: base.action_wizard_update_translations
|
@@ -57,6 +57,16 @@ def convert_field_html_string_bootstrap_4to5(env):
|
|
57
57
|
]
|
58
58
|
},
|
59
59
|
}
|
60
|
+
# Certain fields had sanitize=False or other sanitization disablings (like
|
61
|
+
# sanitize_attributes=False or sanitize_form=False), so when converting to BS 5,
|
62
|
+
# we should allow to save the result without re-sanitizing such content. For that,
|
63
|
+
# if the user is not on the sanitize overridable group, we add it, removing it after
|
64
|
+
# conversion
|
65
|
+
group_overridable = False
|
66
|
+
if not env.user._has_group("base.group_sanitize_override"):
|
67
|
+
group_overridable = env.ref("base.group_sanitize_override")
|
68
|
+
env.user.groups_id = [(4, group_overridable.id)]
|
69
|
+
# Search
|
60
70
|
fields = env["ir.model.fields"].search(
|
61
71
|
[
|
62
72
|
("ttype", "=", "html"),
|
@@ -75,6 +85,9 @@ def convert_field_html_string_bootstrap_4to5(env):
|
|
75
85
|
env.cr, env[model]._table, field.name
|
76
86
|
):
|
77
87
|
convert_field_bootstrap_4to5(env, model, field.name, domain=domain)
|
88
|
+
# Remove the group if applicable
|
89
|
+
if group_overridable:
|
90
|
+
env.user.groups_id = [(3, group_overridable.id)]
|
78
91
|
|
79
92
|
|
80
93
|
def rename_t_group_website_restricted_editor(env):
|
@@ -4,3 +4,9 @@ from openupgradelib import openupgrade
|
|
4
4
|
@openupgrade.migrate()
|
5
5
|
def migrate(env, version):
|
6
6
|
openupgrade.load_data(env.cr, "website", "16.0.1.0/noupdate_changes.xml")
|
7
|
+
# Website editors that come from v15, where there was no sanitization, would expect
|
8
|
+
# the same on the new version, or worst: they introduce some content like iframe,
|
9
|
+
# and re-editing that content in 16 leads to lose it when saving it. Thus, let's
|
10
|
+
# add all of them to the override sanitization group for keeping the same behavior.
|
11
|
+
users = env.ref("website.group_website_restricted_editor").users
|
12
|
+
users.groups_id = [(4, env.ref("base.group_sanitize_override").id)]
|
@@ -56,9 +56,9 @@ odoo/addons/openupgrade_scripts/scripts/barcodes_gs1_nomenclature/16.0.1.0/upgra
|
|
56
56
|
odoo/addons/openupgrade_scripts/scripts/base/16.0.1.3/end-migration.py,sha256=y-9rMcssFgQHfiAXRLW6JF6NB2_8Bi0wY5teaZFLxME,1583
|
57
57
|
odoo/addons/openupgrade_scripts/scripts/base/16.0.1.3/noupdate_changes.xml,sha256=z_fmacZ3saI3GiyJ7fHLtclFWXRPGIXEUwysmxr1A0k,4593
|
58
58
|
odoo/addons/openupgrade_scripts/scripts/base/16.0.1.3/post-migration.py,sha256=OU-gRxyx7crZ6IpuG-UuGgc2sVPudHE-vhGO6ZwCL8c,457
|
59
|
-
odoo/addons/openupgrade_scripts/scripts/base/16.0.1.3/pre-migration.py,sha256=
|
59
|
+
odoo/addons/openupgrade_scripts/scripts/base/16.0.1.3/pre-migration.py,sha256=smzk3cFMr6ZzmWHm1hbwj6ZFqxya_OzS58p3E6uWkfM,6950
|
60
60
|
odoo/addons/openupgrade_scripts/scripts/base/16.0.1.3/upgrade_analysis.txt,sha256=ThK2rCQVceI3NqoOiqt_SYedOd7c8--tsUZ8dmPUz_I,11314
|
61
|
-
odoo/addons/openupgrade_scripts/scripts/base/16.0.1.3/upgrade_analysis_work.txt,sha256=
|
61
|
+
odoo/addons/openupgrade_scripts/scripts/base/16.0.1.3/upgrade_analysis_work.txt,sha256=_sPnYX5WfLC67-J-WFuD5w0-u70wdX2s8cX4l5r4obM,11632
|
62
62
|
odoo/addons/openupgrade_scripts/scripts/base/16.0.1.3/upgrade_general_log.txt,sha256=GsgXrqhdPCQn16HO8J5qHAnC7gyAtrzQkIvUCHgVgXo,20904
|
63
63
|
odoo/addons/openupgrade_scripts/scripts/base/16.0.1.3/tests/__init__.py,sha256=JuV2AHdcN6CjX8uXg1q3XGx2f8UTdGeexNJIb4bP6sM,83
|
64
64
|
odoo/addons/openupgrade_scripts/scripts/base/16.0.1.3/tests/data.py,sha256=dIspzp_EBLraDCGKqp2DuGmUcqKF32l4AGKacErqnSw,171
|
@@ -684,9 +684,9 @@ odoo/addons/openupgrade_scripts/scripts/web_editor/16.0.1.0/upgrade_analysis.txt
|
|
684
684
|
odoo/addons/openupgrade_scripts/scripts/web_editor/16.0.1.0/upgrade_analysis_work.txt,sha256=0aFLxiZZm2pddnvepo7jSIJ3Iek3mnH4oLV7rnG0jRE,213
|
685
685
|
odoo/addons/openupgrade_scripts/scripts/web_tour/16.0.0.1/upgrade_analysis.txt,sha256=_dVyBxQ-ck0iyHgRd6mifxeSsMCRxdpCQcCDVn-lvMk,147
|
686
686
|
odoo/addons/openupgrade_scripts/scripts/web_tour/16.0.0.1/upgrade_analysis_work.txt,sha256=OFVVLWaIounkcVq_mmX4DP7on6of6oG3NFVgMQ2KEZc,163
|
687
|
-
odoo/addons/openupgrade_scripts/scripts/website/16.0.1.0/end-migration.py,sha256=
|
687
|
+
odoo/addons/openupgrade_scripts/scripts/website/16.0.1.0/end-migration.py,sha256=mKK82P_4caB9mgyXo_KvpAEbeSPek12_0mxBvnfp7JM,4302
|
688
688
|
odoo/addons/openupgrade_scripts/scripts/website/16.0.1.0/noupdate_changes.xml,sha256=fj5Ae_7zlLILy8NNpY_MYKnNfOvL4-QrJlRbCsUgae8,312
|
689
|
-
odoo/addons/openupgrade_scripts/scripts/website/16.0.1.0/post-migration.py,sha256=
|
689
|
+
odoo/addons/openupgrade_scripts/scripts/website/16.0.1.0/post-migration.py,sha256=lXIPEFd-ZT4G3IDV-lJz0VBKIIBWIDuO0Eic4JEYu94,657
|
690
690
|
odoo/addons/openupgrade_scripts/scripts/website/16.0.1.0/pre-migration.py,sha256=Invtw62qgK3tIwp8vcjNueh9b5pnztTXfmuMsWiyoBU,4709
|
691
691
|
odoo/addons/openupgrade_scripts/scripts/website/16.0.1.0/upgrade_analysis.txt,sha256=vCTXx3AvIGrv58lSrTjB-4tKywuc1XtN-tPnhNAuLQo,4942
|
692
692
|
odoo/addons/openupgrade_scripts/scripts/website/16.0.1.0/upgrade_analysis_work.txt,sha256=5-CSFPNzO01tICIHE49UYTIWFUZdDdl_JdVVRN7MNGI,5331
|
@@ -790,7 +790,7 @@ odoo/addons/openupgrade_scripts/scripts/website_twitter/16.0.1.0/upgrade_analysi
|
|
790
790
|
odoo/addons/openupgrade_scripts/static/description/banner.png,sha256=KTIBu4gfxeZVw9zjs_fivTgFEOeaAorlBxajmCA1p6k,26859
|
791
791
|
odoo/addons/openupgrade_scripts/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
|
792
792
|
odoo/addons/openupgrade_scripts/static/description/index.html,sha256=T3CGCNUVysVD8ysCfwpbPWR5z8x_9vbYNoS4TLHDYOQ,12940
|
793
|
-
odoo_addon_openupgrade_scripts-16.0.1.0.5.
|
794
|
-
odoo_addon_openupgrade_scripts-16.0.1.0.5.
|
795
|
-
odoo_addon_openupgrade_scripts-16.0.1.0.5.
|
796
|
-
odoo_addon_openupgrade_scripts-16.0.1.0.5.
|
793
|
+
odoo_addon_openupgrade_scripts-16.0.1.0.5.5.dist-info/METADATA,sha256=WYO1dpNUrYwHzUx9qQ-PJeajgzdm6l_ZIY2xHZhiZWg,3985
|
794
|
+
odoo_addon_openupgrade_scripts-16.0.1.0.5.5.dist-info/WHEEL,sha256=ZhOvUsYhy81Dx67gN3TV0RchQWBIIzutDZaJODDg2Vo,81
|
795
|
+
odoo_addon_openupgrade_scripts-16.0.1.0.5.5.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
|
796
|
+
odoo_addon_openupgrade_scripts-16.0.1.0.5.5.dist-info/RECORD,,
|