odoo-addon-openupgrade-scripts 17.0.1.0.1.59__py3-none-any.whl → 17.0.1.0.1.62__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.
@@ -0,0 +1,17 @@
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
+ _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_records_safely_by_xml_id(
15
+ env,
16
+ _deleted_xml_records,
17
+ )
@@ -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,67 @@
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
+ event / event.event / auto_confirm (boolean) : DEL
8
+ # NOTHING TO DO: Attendees are now created confirmed (state=open)
9
+ event / event.event / badge_format (selection) : NEW required, selection_keys: ['A4_french_fold', 'A6', 'four_per_sheet'], hasdefault: default
10
+ event / event.event / badge_image (binary) : NEW attachment: True
11
+ # NOTHING TO DO
12
+ event / event.event / lang (selection) : NEW selection_keys: function
13
+ # NOTHING TO DO: It is not required, it can be empty, we do not set the value of the old records
14
+ event / event.event / message_main_attachment_id (many2one): DEL relation: ir.attachment
15
+ event / event.event / rating_ids (one2many) : NEW relation: rating.rating
16
+ event / event.event / registration_properties_definition (properties_definition): NEW
17
+ # NOTHING TO DO
18
+ event / event.event.ticket / _order : _order is now 'event_id, sequence, name, id' ('id')
19
+ event / event.event.ticket / color (char) : NEW hasdefault: default
20
+ event / event.event.ticket / sequence (integer) : NEW hasdefault: default
21
+ # NOTHING TO DO
22
+ event / event.registration / activity_user_id (many2one) : not related anymore
23
+ event / event.registration / activity_user_id (many2one) : now a function
24
+ # NOTHING TO DO
25
+ event / event.registration / barcode (char) : NEW
26
+ # NOTHING TO DO: There is no correct way to do it in postgres, we let the ORM set the value of the old records
27
+ event / event.registration / company_name (char) : NEW hasdefault: compute
28
+ # DONE: Define the value of existing records in pre-migration
29
+ event / event.registration / message_main_attachment_id (many2one): DEL relation: ir.attachment
30
+ event / event.registration / mobile (char) : DEL
31
+ event / event.registration / rating_ids (one2many) : NEW relation: rating.rating
32
+ event / event.registration / registration_properties (properties): NEW hasdefault: compute
33
+ # NOTHING TO DO
34
+ event / event.type / auto_confirm (boolean) : DEL
35
+ # NOTHING TO DO: Explained in auto_confirm field of event.event
36
+ event / event.type.ticket / _order : _order is now 'sequence, name, id' ('id')
37
+ event / event.type.ticket / sequence (integer) : NEW hasdefault: default
38
+ # NOTHING TO DO
39
+ ---XML records in module 'event'---
40
+ DEL event.type: event.event_type_data_conference (noupdate)
41
+ DEL event.type: event.event_type_data_ticket (noupdate)
42
+ # DONE: removed in post-migration
43
+ NEW ir.actions.client: event.event_barcode_action_main_view
44
+ NEW ir.actions.report: event.action_report_event_event_attendee_list
45
+ NEW ir.actions.report: event.action_report_event_event_badge
46
+ NEW ir.actions.report: event.action_report_event_registration_attendee_list
47
+ NEW ir.actions.report: event.action_report_event_registration_badge
48
+ NEW ir.actions.report: event.action_report_event_registration_responsive_html_ticket
49
+ DEL ir.actions.report: event.action_report_event_event_foldable_badge
50
+ DEL ir.actions.report: event.action_report_event_registration_foldable_badge
51
+ NEW ir.model.constraint: event.constraint_event_registration_barcode_event_uniq
52
+ NEW ir.ui.menu: event.menu_event_registration_desk
53
+ NEW ir.ui.view: event.attendee_list
54
+ NEW ir.ui.view: event.event_event_attendee_list
55
+ NEW ir.ui.view: event.event_event_report_template_badge
56
+ NEW ir.ui.view: event.event_event_view_activity
57
+ NEW ir.ui.view: event.event_registration_attendee_list
58
+ NEW ir.ui.view: event.event_registration_report_template_badge
59
+ NEW ir.ui.view: event.event_registration_report_template_responsive_html_ticket
60
+ NEW ir.ui.view: event.event_report_template_a6_badge
61
+ NEW ir.ui.view: event.event_report_template_badge_card
62
+ NEW ir.ui.view: event.event_report_template_four_per_sheet_badge
63
+ DEL ir.ui.view: event.event_event_report_template_foldable_badge
64
+ DEL ir.ui.view: event.event_registration_report_template_foldable_badge
65
+ NEW report.paperformat: event.paperformat_event_badge
66
+ DEL report.paperformat: event.paperformat_event_foldable_badge
67
+ # NOTHING TO DO
@@ -0,0 +1,13 @@
1
+ ---Models in module 'sales_team'---
2
+ ---Fields in module 'sales_team'---
3
+ sales_team / crm.team / message_main_attachment_id (many2one): DEL relation: ir.attachment
4
+ sales_team / crm.team.member / message_main_attachment_id (many2one): DEL relation: ir.attachment
5
+ NOTHING TO DO: related to mail module
6
+
7
+ sales_team / crm.team / rating_ids (one2many) : NEW relation: rating.rating
8
+ sales_team / crm.team.member / rating_ids (one2many) : NEW relation: rating.rating
9
+ NOTHING TO DO: one2many
10
+
11
+ ---XML records in module 'sales_team'---
12
+ DEL ir.ui.menu: sales_team.menu_sale_config
13
+ NOTHING TO DO
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: odoo-addon-openupgrade_scripts
3
- Version: 17.0.1.0.1.59
3
+ Version: 17.0.1.0.1.62
4
4
  Requires-Python: >=3.10
5
5
  Requires-Dist: odoo>=17.0a,<17.1dev
6
6
  Requires-Dist: openupgradelib
@@ -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=yjk4rNJMYWF7Y0vo1YXh4vPjDSpzSBV72EnO5wj4a4k,482
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=WujcOirErZ7AFXn-CkFPMxbS-jMRkumRQWmyGazJh78,4716
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
@@ -445,6 +448,7 @@ odoo/addons/openupgrade_scripts/scripts/sale_stock/17.0.1.0/upgrade_analysis.txt
445
448
  odoo/addons/openupgrade_scripts/scripts/sale_timesheet/17.0.1.0/noupdate_changes.xml,sha256=yGW3ZrY1z-siMMt4DreIW96BQevct1WGif1Hwi1_q0s,172
446
449
  odoo/addons/openupgrade_scripts/scripts/sale_timesheet/17.0.1.0/upgrade_analysis.txt,sha256=A_nXJBOM1ztD2XR9xKvGGl97GTTaR8wswLJGKpY0yWA,1150
447
450
  odoo/addons/openupgrade_scripts/scripts/sales_team/17.0.1.1/upgrade_analysis.txt,sha256=VMb2vV6ZCh2oqJEOMAaS2O_2MSF9V_O_E5vb3UHIXGI,579
451
+ odoo/addons/openupgrade_scripts/scripts/sales_team/17.0.1.1/upgrade_analysis_work.txt,sha256=xQ5ks0IvyWXfD20A-ZDccjo0UWqRH6WUeRDd-ms6pSQ,657
448
452
  odoo/addons/openupgrade_scripts/scripts/sms/17.0.3.0/upgrade_analysis.txt,sha256=Y_8Hs8o6T5rlTnFlXiRFXK11NhP1V4NH4_-r1mqYeKI,3309
449
453
  odoo/addons/openupgrade_scripts/scripts/sms/17.0.3.0/upgrade_analysis_work.txt,sha256=pnFrwvFgT1OylmVIhNAnDTmbkOMOOkV80wG6MHk_VOo,3497
450
454
  odoo/addons/openupgrade_scripts/scripts/snailmail/17.0.0.4/upgrade_analysis.txt,sha256=DcixjzZMn2A0eGYcgIHBt9mPexQ7764YamSkARZx-Js,1626
@@ -528,7 +532,7 @@ odoo/addons/openupgrade_scripts/scripts/website_twitter/17.0.1.0/upgrade_analysi
528
532
  odoo/addons/openupgrade_scripts/static/description/banner.png,sha256=KTIBu4gfxeZVw9zjs_fivTgFEOeaAorlBxajmCA1p6k,26859
529
533
  odoo/addons/openupgrade_scripts/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
530
534
  odoo/addons/openupgrade_scripts/static/description/index.html,sha256=iV41-zYBM4uvZPuunpcr7bQeRgBaojVsKo_gkeyJyA4,12639
531
- odoo_addon_openupgrade_scripts-17.0.1.0.1.59.dist-info/METADATA,sha256=DwYdtzVADLVs9mQ8SYPnbAfJfKFg_5dyz0LlGfgsDhI,3785
532
- odoo_addon_openupgrade_scripts-17.0.1.0.1.59.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
533
- odoo_addon_openupgrade_scripts-17.0.1.0.1.59.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
534
- odoo_addon_openupgrade_scripts-17.0.1.0.1.59.dist-info/RECORD,,
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,,