odoo-addon-openupgrade-scripts 17.0.1.0.1.62__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.
@@ -1,4 +1,4 @@
1
- # Copyright 2024 Tecnativa - Víctor Martínez
1
+ # Copyright 2024-2025 Tecnativa - Víctor Martínez
2
2
  # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
3
3
  from openupgradelib import openupgrade
4
4
 
@@ -11,7 +11,18 @@ _deleted_xml_records = [
11
11
  @openupgrade.migrate()
12
12
  def migrate(env, version):
13
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
+ )
14
23
  openupgrade.delete_records_safely_by_xml_id(
15
24
  env,
16
25
  _deleted_xml_records,
17
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")
@@ -4,42 +4,59 @@ event / event.event / _order : _order
4
4
  event / event.event / activity_user_id (many2one) : not related anymore
5
5
  event / event.event / activity_user_id (many2one) : now a function
6
6
  # NOTHING TO DO
7
+
7
8
  event / event.event / auto_confirm (boolean) : DEL
8
9
  # NOTHING TO DO: Attendees are now created confirmed (state=open)
10
+
9
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
+
10
14
  event / event.event / badge_image (binary) : NEW attachment: True
11
15
  # NOTHING TO DO
16
+
12
17
  event / event.event / lang (selection) : NEW selection_keys: function
13
18
  # NOTHING TO DO: It is not required, it can be empty, we do not set the value of the old records
19
+
14
20
  event / event.event / message_main_attachment_id (many2one): DEL relation: ir.attachment
15
21
  event / event.event / rating_ids (one2many) : NEW relation: rating.rating
16
22
  event / event.event / registration_properties_definition (properties_definition): NEW
17
23
  # NOTHING TO DO
24
+
18
25
  event / event.event.ticket / _order : _order is now 'event_id, sequence, name, id' ('id')
19
26
  event / event.event.ticket / color (char) : NEW hasdefault: default
20
- event / event.event.ticket / sequence (integer) : NEW hasdefault: default
21
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
+
22
32
  event / event.registration / activity_user_id (many2one) : not related anymore
23
33
  event / event.registration / activity_user_id (many2one) : now a function
24
34
  # NOTHING TO DO
35
+
25
36
  event / event.registration / barcode (char) : NEW
26
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
+
27
39
  event / event.registration / company_name (char) : NEW hasdefault: compute
28
- # DONE: Define the value of existing records in pre-migration
40
+ # DONE: pre-migration: Pre-create and fill the column for avoiding the ORM computation
41
+
29
42
  event / event.registration / message_main_attachment_id (many2one): DEL relation: ir.attachment
30
43
  event / event.registration / mobile (char) : DEL
31
44
  event / event.registration / rating_ids (one2many) : NEW relation: rating.rating
32
45
  event / event.registration / registration_properties (properties): NEW hasdefault: compute
33
46
  # NOTHING TO DO
47
+
34
48
  event / event.type / auto_confirm (boolean) : DEL
35
49
  # NOTHING TO DO: Explained in auto_confirm field of event.event
50
+
36
51
  event / event.type.ticket / _order : _order is now 'sequence, name, id' ('id')
37
52
  event / event.type.ticket / sequence (integer) : NEW hasdefault: default
38
- # NOTHING TO DO
53
+ # DONE: post-migration: We define the value as the id to respect the same ordering as before
54
+
39
55
  ---XML records in module 'event'---
40
56
  DEL event.type: event.event_type_data_conference (noupdate)
41
57
  DEL event.type: event.event_type_data_ticket (noupdate)
42
58
  # DONE: removed in post-migration
59
+
43
60
  NEW ir.actions.client: event.event_barcode_action_main_view
44
61
  NEW ir.actions.report: event.action_report_event_event_attendee_list
45
62
  NEW ir.actions.report: event.action_report_event_event_badge
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: odoo-addon-openupgrade_scripts
3
- Version: 17.0.1.0.1.62
3
+ Version: 17.0.1.0.1.63
4
4
  Requires-Python: >=3.10
5
5
  Requires-Dist: odoo>=17.0a,<17.1dev
6
6
  Requires-Dist: openupgradelib
@@ -84,10 +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=yjk4rNJMYWF7Y0vo1YXh4vPjDSpzSBV72EnO5wj4a4k,482
87
+ odoo/addons/openupgrade_scripts/scripts/event/17.0.1.8/post-migration.py,sha256=nfXrBctzNW3P9z9CMQ3aSnB-XRVnYYSixrfGH4UQrU8,876
88
88
  odoo/addons/openupgrade_scripts/scripts/event/17.0.1.8/pre-migration.py,sha256=y-uLS0KuyCZ-pefOdcKAJ22jSYx2E-Zdkcfex2KWU2Y,1120
89
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=WujcOirErZ7AFXn-CkFPMxbS-jMRkumRQWmyGazJh78,4716
90
+ odoo/addons/openupgrade_scripts/scripts/event/17.0.1.8/upgrade_analysis_work.txt,sha256=bdc7HjFYwds3t8aaUuYJr9oIhIjuD8slTCc4H3gAaps,4995
91
91
  odoo/addons/openupgrade_scripts/scripts/event_booth/17.0.1.1/noupdate_changes.xml,sha256=iipsblz99fuanBEY661nPirN39O3eOGjW1bT2JwiWss,2381
92
92
  odoo/addons/openupgrade_scripts/scripts/event_booth/17.0.1.1/upgrade_analysis.txt,sha256=sF-T-vRsKVL8z6zOaXX1EzIZa7WJ1hL9-dlN5wq5mEk,588
93
93
  odoo/addons/openupgrade_scripts/scripts/event_booth_sale/17.0.1.2/upgrade_analysis.txt,sha256=93zxvY5pNeVDm0H25cv9YJmV45VQ0rN12h9uAqabxzU,552
@@ -532,7 +532,7 @@ odoo/addons/openupgrade_scripts/scripts/website_twitter/17.0.1.0/upgrade_analysi
532
532
  odoo/addons/openupgrade_scripts/static/description/banner.png,sha256=KTIBu4gfxeZVw9zjs_fivTgFEOeaAorlBxajmCA1p6k,26859
533
533
  odoo/addons/openupgrade_scripts/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
534
534
  odoo/addons/openupgrade_scripts/static/description/index.html,sha256=iV41-zYBM4uvZPuunpcr7bQeRgBaojVsKo_gkeyJyA4,12639
535
- odoo_addon_openupgrade_scripts-17.0.1.0.1.62.dist-info/METADATA,sha256=Vg-7otZ0KaLWhPT_bTl9eZrONjsxTK9pQpkhs6EjDnE,3785
536
- odoo_addon_openupgrade_scripts-17.0.1.0.1.62.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
537
- odoo_addon_openupgrade_scripts-17.0.1.0.1.62.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
538
- odoo_addon_openupgrade_scripts-17.0.1.0.1.62.dist-info/RECORD,,
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,,