odoo-addon-openupgrade-scripts 17.0.1.0.1.61__py3-none-any.whl → 17.0.1.0.1.63__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/event/17.0.1.8/post-migration.py +28 -0
- odoo/addons/openupgrade_scripts/scripts/event/17.0.1.8/pre-migration.py +37 -0
- odoo/addons/openupgrade_scripts/scripts/event/17.0.1.8/upgrade_analysis_work.txt +84 -0
- {odoo_addon_openupgrade_scripts-17.0.1.0.1.61.dist-info → odoo_addon_openupgrade_scripts-17.0.1.0.1.63.dist-info}/METADATA +1 -1
- {odoo_addon_openupgrade_scripts-17.0.1.0.1.61.dist-info → odoo_addon_openupgrade_scripts-17.0.1.0.1.63.dist-info}/RECORD +7 -4
- {odoo_addon_openupgrade_scripts-17.0.1.0.1.61.dist-info → odoo_addon_openupgrade_scripts-17.0.1.0.1.63.dist-info}/WHEEL +0 -0
- {odoo_addon_openupgrade_scripts-17.0.1.0.1.61.dist-info → odoo_addon_openupgrade_scripts-17.0.1.0.1.63.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,28 @@
|
|
1
|
+
# Copyright 2024-2025 Tecnativa - Víctor Martínez
|
2
|
+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
3
|
+
from openupgradelib import openupgrade
|
4
|
+
|
5
|
+
_deleted_xml_records = [
|
6
|
+
"event.event_type_data_conference",
|
7
|
+
"event.event_type_data_ticket",
|
8
|
+
]
|
9
|
+
|
10
|
+
|
11
|
+
@openupgrade.migrate()
|
12
|
+
def migrate(env, version):
|
13
|
+
openupgrade.load_data(env, "event", "17.0.1.8/noupdate_changes.xml")
|
14
|
+
openupgrade.delete_record_translations(
|
15
|
+
env.cr,
|
16
|
+
"event",
|
17
|
+
[
|
18
|
+
"event_registration_mail_template_badge",
|
19
|
+
"event_reminder",
|
20
|
+
"event_subscription",
|
21
|
+
],
|
22
|
+
)
|
23
|
+
openupgrade.delete_records_safely_by_xml_id(
|
24
|
+
env,
|
25
|
+
_deleted_xml_records,
|
26
|
+
)
|
27
|
+
openupgrade.logged_query(env.cr, "UPDATE event_event_ticket SET sequence = id")
|
28
|
+
openupgrade.logged_query(env.cr, "UPDATE event_type_ticket SET sequence = id")
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# Copyright 2024 Tecnativa - Víctor Martínez
|
2
|
+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
3
|
+
from openupgradelib import openupgrade
|
4
|
+
|
5
|
+
|
6
|
+
def _fill_event_registration_company_name(env):
|
7
|
+
openupgrade.logged_query(
|
8
|
+
env.cr,
|
9
|
+
"""
|
10
|
+
ALTER TABLE event_registration
|
11
|
+
ADD COLUMN IF NOT EXISTS company_name VARCHAR
|
12
|
+
""",
|
13
|
+
)
|
14
|
+
openupgrade.logged_query(
|
15
|
+
env.cr,
|
16
|
+
"""UPDATE event_registration AS r
|
17
|
+
SET company_name = p.company_name
|
18
|
+
FROM res_partner AS p
|
19
|
+
WHERE r.partner_id IS NOT NULL
|
20
|
+
AND p.type = 'contact'
|
21
|
+
AND p.company_name IS NOT NULL;""",
|
22
|
+
)
|
23
|
+
openupgrade.logged_query(
|
24
|
+
env.cr,
|
25
|
+
"""UPDATE event_registration AS r
|
26
|
+
SET company_name = p2.company_name
|
27
|
+
FROM res_partner AS p
|
28
|
+
JOIN res_partner AS p2 ON (p2.parent_id = p.id AND p2.type = 'contact')
|
29
|
+
WHERE r.partner_id IS NOT NULL
|
30
|
+
AND p2.company_name IS NOT NULL
|
31
|
+
AND r.company_name IS NULL;""",
|
32
|
+
)
|
33
|
+
|
34
|
+
|
35
|
+
@openupgrade.migrate()
|
36
|
+
def migrate(env, version):
|
37
|
+
_fill_event_registration_company_name(env)
|
@@ -0,0 +1,84 @@
|
|
1
|
+
---Models in module 'event'---
|
2
|
+
---Fields in module 'event'---
|
3
|
+
event / event.event / _order : _order is now 'date_begin, id' ('date_begin')
|
4
|
+
event / event.event / activity_user_id (many2one) : not related anymore
|
5
|
+
event / event.event / activity_user_id (many2one) : now a function
|
6
|
+
# NOTHING TO DO
|
7
|
+
|
8
|
+
event / event.event / auto_confirm (boolean) : DEL
|
9
|
+
# NOTHING TO DO: Attendees are now created confirmed (state=open)
|
10
|
+
|
11
|
+
event / event.event / badge_format (selection) : NEW required, selection_keys: ['A4_french_fold', 'A6', 'four_per_sheet'], hasdefault: default
|
12
|
+
# NOTHING TO DO: Default value is the same as the previous behavior.
|
13
|
+
|
14
|
+
event / event.event / badge_image (binary) : NEW attachment: True
|
15
|
+
# NOTHING TO DO
|
16
|
+
|
17
|
+
event / event.event / lang (selection) : NEW selection_keys: function
|
18
|
+
# NOTHING TO DO: It is not required, it can be empty, we do not set the value of the old records
|
19
|
+
|
20
|
+
event / event.event / message_main_attachment_id (many2one): DEL relation: ir.attachment
|
21
|
+
event / event.event / rating_ids (one2many) : NEW relation: rating.rating
|
22
|
+
event / event.event / registration_properties_definition (properties_definition): NEW
|
23
|
+
# NOTHING TO DO
|
24
|
+
|
25
|
+
event / event.event.ticket / _order : _order is now 'event_id, sequence, name, id' ('id')
|
26
|
+
event / event.event.ticket / color (char) : NEW hasdefault: default
|
27
|
+
# NOTHING TO DO
|
28
|
+
|
29
|
+
event / event.event.ticket / sequence (integer) : NEW hasdefault: default
|
30
|
+
# DONE: post-migration: We define the value as the id to respect the same ordering as before
|
31
|
+
|
32
|
+
event / event.registration / activity_user_id (many2one) : not related anymore
|
33
|
+
event / event.registration / activity_user_id (many2one) : now a function
|
34
|
+
# NOTHING TO DO
|
35
|
+
|
36
|
+
event / event.registration / barcode (char) : NEW
|
37
|
+
# NOTHING TO DO: There is no correct way to do it in postgres, we let the ORM set the value of the old records
|
38
|
+
|
39
|
+
event / event.registration / company_name (char) : NEW hasdefault: compute
|
40
|
+
# DONE: pre-migration: Pre-create and fill the column for avoiding the ORM computation
|
41
|
+
|
42
|
+
event / event.registration / message_main_attachment_id (many2one): DEL relation: ir.attachment
|
43
|
+
event / event.registration / mobile (char) : DEL
|
44
|
+
event / event.registration / rating_ids (one2many) : NEW relation: rating.rating
|
45
|
+
event / event.registration / registration_properties (properties): NEW hasdefault: compute
|
46
|
+
# NOTHING TO DO
|
47
|
+
|
48
|
+
event / event.type / auto_confirm (boolean) : DEL
|
49
|
+
# NOTHING TO DO: Explained in auto_confirm field of event.event
|
50
|
+
|
51
|
+
event / event.type.ticket / _order : _order is now 'sequence, name, id' ('id')
|
52
|
+
event / event.type.ticket / sequence (integer) : NEW hasdefault: default
|
53
|
+
# DONE: post-migration: We define the value as the id to respect the same ordering as before
|
54
|
+
|
55
|
+
---XML records in module 'event'---
|
56
|
+
DEL event.type: event.event_type_data_conference (noupdate)
|
57
|
+
DEL event.type: event.event_type_data_ticket (noupdate)
|
58
|
+
# DONE: removed in post-migration
|
59
|
+
|
60
|
+
NEW ir.actions.client: event.event_barcode_action_main_view
|
61
|
+
NEW ir.actions.report: event.action_report_event_event_attendee_list
|
62
|
+
NEW ir.actions.report: event.action_report_event_event_badge
|
63
|
+
NEW ir.actions.report: event.action_report_event_registration_attendee_list
|
64
|
+
NEW ir.actions.report: event.action_report_event_registration_badge
|
65
|
+
NEW ir.actions.report: event.action_report_event_registration_responsive_html_ticket
|
66
|
+
DEL ir.actions.report: event.action_report_event_event_foldable_badge
|
67
|
+
DEL ir.actions.report: event.action_report_event_registration_foldable_badge
|
68
|
+
NEW ir.model.constraint: event.constraint_event_registration_barcode_event_uniq
|
69
|
+
NEW ir.ui.menu: event.menu_event_registration_desk
|
70
|
+
NEW ir.ui.view: event.attendee_list
|
71
|
+
NEW ir.ui.view: event.event_event_attendee_list
|
72
|
+
NEW ir.ui.view: event.event_event_report_template_badge
|
73
|
+
NEW ir.ui.view: event.event_event_view_activity
|
74
|
+
NEW ir.ui.view: event.event_registration_attendee_list
|
75
|
+
NEW ir.ui.view: event.event_registration_report_template_badge
|
76
|
+
NEW ir.ui.view: event.event_registration_report_template_responsive_html_ticket
|
77
|
+
NEW ir.ui.view: event.event_report_template_a6_badge
|
78
|
+
NEW ir.ui.view: event.event_report_template_badge_card
|
79
|
+
NEW ir.ui.view: event.event_report_template_four_per_sheet_badge
|
80
|
+
DEL ir.ui.view: event.event_event_report_template_foldable_badge
|
81
|
+
DEL ir.ui.view: event.event_registration_report_template_foldable_badge
|
82
|
+
NEW report.paperformat: event.paperformat_event_badge
|
83
|
+
DEL report.paperformat: event.paperformat_event_foldable_badge
|
84
|
+
# NOTHING TO DO
|
@@ -84,7 +84,10 @@ odoo/addons/openupgrade_scripts/scripts/digest/17.0.1.1/pre-migration.py,sha256=
|
|
84
84
|
odoo/addons/openupgrade_scripts/scripts/digest/17.0.1.1/upgrade_analysis.txt,sha256=oPv4iPppLTf4jX6IovBfLVYGjqEvmWix7HiIjgeSkao,396
|
85
85
|
odoo/addons/openupgrade_scripts/scripts/digest/17.0.1.1/upgrade_analysis_work.txt,sha256=jiHe3jMCLNJJ1cZvVVpq3cV4ggEbyFI7dRL8rJu6nYY,439
|
86
86
|
odoo/addons/openupgrade_scripts/scripts/event/17.0.1.8/noupdate_changes.xml,sha256=LEEyj94Yk0Sr5EyKRglu0OXM2r-LLt1BWcYAqfgi-NQ,52136
|
87
|
+
odoo/addons/openupgrade_scripts/scripts/event/17.0.1.8/post-migration.py,sha256=nfXrBctzNW3P9z9CMQ3aSnB-XRVnYYSixrfGH4UQrU8,876
|
88
|
+
odoo/addons/openupgrade_scripts/scripts/event/17.0.1.8/pre-migration.py,sha256=y-uLS0KuyCZ-pefOdcKAJ22jSYx2E-Zdkcfex2KWU2Y,1120
|
87
89
|
odoo/addons/openupgrade_scripts/scripts/event/17.0.1.8/upgrade_analysis.txt,sha256=5FaEY5kMt6XA2T3VzU8F5u2CTmh7WZchRjKHl-keSew,4154
|
90
|
+
odoo/addons/openupgrade_scripts/scripts/event/17.0.1.8/upgrade_analysis_work.txt,sha256=bdc7HjFYwds3t8aaUuYJr9oIhIjuD8slTCc4H3gAaps,4995
|
88
91
|
odoo/addons/openupgrade_scripts/scripts/event_booth/17.0.1.1/noupdate_changes.xml,sha256=iipsblz99fuanBEY661nPirN39O3eOGjW1bT2JwiWss,2381
|
89
92
|
odoo/addons/openupgrade_scripts/scripts/event_booth/17.0.1.1/upgrade_analysis.txt,sha256=sF-T-vRsKVL8z6zOaXX1EzIZa7WJ1hL9-dlN5wq5mEk,588
|
90
93
|
odoo/addons/openupgrade_scripts/scripts/event_booth_sale/17.0.1.2/upgrade_analysis.txt,sha256=93zxvY5pNeVDm0H25cv9YJmV45VQ0rN12h9uAqabxzU,552
|
@@ -529,7 +532,7 @@ odoo/addons/openupgrade_scripts/scripts/website_twitter/17.0.1.0/upgrade_analysi
|
|
529
532
|
odoo/addons/openupgrade_scripts/static/description/banner.png,sha256=KTIBu4gfxeZVw9zjs_fivTgFEOeaAorlBxajmCA1p6k,26859
|
530
533
|
odoo/addons/openupgrade_scripts/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
|
531
534
|
odoo/addons/openupgrade_scripts/static/description/index.html,sha256=iV41-zYBM4uvZPuunpcr7bQeRgBaojVsKo_gkeyJyA4,12639
|
532
|
-
odoo_addon_openupgrade_scripts-17.0.1.0.1.
|
533
|
-
odoo_addon_openupgrade_scripts-17.0.1.0.1.
|
534
|
-
odoo_addon_openupgrade_scripts-17.0.1.0.1.
|
535
|
-
odoo_addon_openupgrade_scripts-17.0.1.0.1.
|
535
|
+
odoo_addon_openupgrade_scripts-17.0.1.0.1.63.dist-info/METADATA,sha256=cTOOBS_TCMmC8R6zpn9dS7B9f8JdnDuSXzeouK69_8k,3785
|
536
|
+
odoo_addon_openupgrade_scripts-17.0.1.0.1.63.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
|
537
|
+
odoo_addon_openupgrade_scripts-17.0.1.0.1.63.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
|
538
|
+
odoo_addon_openupgrade_scripts-17.0.1.0.1.63.dist-info/RECORD,,
|
File without changes
|