odoo-addon-openupgrade-scripts 17.0.1.0.1.325__py3-none-any.whl → 17.0.1.0.1.328__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.
@@ -8,6 +8,13 @@ _deleted_xml_records = [
8
8
  ]
9
9
 
10
10
 
11
+ @openupgrade.logging()
12
+ def _event_registration_barcode(env):
13
+ """Assign a new barcode per record, as if not, Odoo assigns the same to old."""
14
+ for record in env["event.registration"].search([]):
15
+ record.barcode = record._get_random_barcode()
16
+
17
+
11
18
  @openupgrade.migrate()
12
19
  def migrate(env, version):
13
20
  openupgrade.load_data(env, "event", "17.0.1.8/noupdate_changes.xml")
@@ -24,5 +31,6 @@ def migrate(env, version):
24
31
  env,
25
32
  _deleted_xml_records,
26
33
  )
34
+ _event_registration_barcode(env)
27
35
  openupgrade.logged_query(env.cr, "UPDATE event_event_ticket SET sequence = id")
28
36
  openupgrade.logged_query(env.cr, "UPDATE event_type_ticket SET sequence = id")
@@ -34,4 +34,8 @@ def _fill_event_registration_company_name(env):
34
34
 
35
35
  @openupgrade.migrate()
36
36
  def migrate(env, version):
37
+ # Pre-create the column for not getting the ORM default value executed
38
+ openupgrade.add_columns(
39
+ env, [(False, "barcode", "char", None, "event_registration")]
40
+ )
37
41
  _fill_event_registration_company_name(env)
@@ -34,7 +34,8 @@ event / event.registration / activity_user_id (many2one) : now a
34
34
  # NOTHING TO DO
35
35
 
36
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
37
+ # DONE: pre-migration: Pre-create the column for not getting any value pre-filled
38
+ # DONE: post-migration: Call the default method one by one for not getting the same barcode for all the records
38
39
 
39
40
  event / event.registration / company_name (char) : NEW hasdefault: compute
40
41
  # DONE: pre-migration: Pre-create and fill the column for avoiding the ORM computation
@@ -1,6 +1,6 @@
1
1
  <?xml version='1.0' encoding='utf-8'?>
2
2
  <odoo>
3
- <record id="forum_help" model="forum.forum">
3
+ <!-- <record id="forum_help" model="forum.forum">
4
4
  <field name="image_1920" type="base64" file="website_forum/static/src/img/help.jpg"/>
5
- </record>
5
+ </record> -->
6
6
  </odoo>
@@ -0,0 +1,12 @@
1
+ # Copyright 2025 Tecnativa - Pedro M. Baeza
2
+ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
3
+
4
+ from openupgradelib import openupgrade
5
+
6
+
7
+ @openupgrade.migrate()
8
+ def migrate(env, version):
9
+ openupgrade.load_data(env, "website_forum", "17.0.1.2/noupdate_changes.xml")
10
+ openupgrade.set_xml_ids_noupdate_value(
11
+ env, "website_forum", ["action_open_forum", "forum_post_view_kanban"], True
12
+ )
@@ -0,0 +1,33 @@
1
+ # Copyright 2025 Tecnativa - Pedro M. Baeza
2
+ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
3
+
4
+ from openupgradelib import openupgrade
5
+
6
+
7
+ def _forum_default_order_last_activity_date(env):
8
+ """The criteria "write_date desc" of forums order has been removed, while
9
+ "last_activity_date desc" has been added. We can switch them, and more
10
+ initializing the field with the same value.
11
+ """
12
+ openupgrade.add_columns(
13
+ env, [(False, "last_activity_date", "datetime", None, "forum_forum")]
14
+ )
15
+ openupgrade.logged_query(
16
+ env.cr, "UPDATE forum_forum SET last_activity_date = write_date"
17
+ )
18
+ openupgrade.logged_query(
19
+ env.cr,
20
+ """
21
+ UPDATE forum_forum
22
+ SET default_order = 'last_activity_date desc'
23
+ WHERE default_order = 'write_date desc'
24
+ """,
25
+ )
26
+
27
+
28
+ @openupgrade.migrate()
29
+ def migrate(env, version):
30
+ _forum_default_order_last_activity_date(env)
31
+ openupgrade.rename_fields(
32
+ env, [("website", "website", "forums_count", "forum_count")]
33
+ )
@@ -0,0 +1,86 @@
1
+ ---Models in module 'website_forum'---
2
+ ---Fields in module 'website_forum'---
3
+ website_forum / forum.forum / _order : _order is now 'sequence, id' ('sequence')
4
+ # NOTHING TO DO: The order has been refined a bit more.
5
+
6
+ website_forum / forum.forum / allow_bump (boolean) : DEL
7
+ website_forum / forum.post / bump_date (datetime) : DEL
8
+ # NOTHING TO DO: Removed feature that wasn't very used.
9
+
10
+ website_forum / forum.forum / default_order (selection) : selection_keys is now '['child_count desc', 'create_date desc', 'last_activity_date desc', 'relevancy desc', 'vote_count desc']' ('['child_count desc', 'create_date desc', 'relevancy desc', 'vote_count desc', 'write_date desc']')
11
+ website_forum / forum.post / last_activity_date (datetime) : NEW required
12
+ # DONE: pre-migration: switch "write_date desc" to "last_activity_date desc" and set last_activity_date with the current write_date
13
+
14
+ website_forum / forum.forum / message_main_attachment_id (many2one): DEL relation: ir.attachment
15
+ website_forum / forum.forum / rating_ids (one2many) : NEW relation: rating.rating
16
+ website_forum / forum.post / message_main_attachment_id (many2one): DEL relation: ir.attachment
17
+ website_forum / forum.post / rating_ids (one2many) : NEW relation: rating.rating
18
+ website_forum / forum.tag / message_main_attachment_id (many2one): DEL relation: ir.attachment
19
+ website_forum / forum.tag / rating_ids (one2many) : NEW relation: rating.rating
20
+ # NOTHING TO DO: mixin stuff with nothing to be done
21
+
22
+ website_forum / forum.forum / tag_ids (one2many) : NEW relation: forum.tag
23
+ # TODO: As this feature is underused, no work is done for now
24
+
25
+ website_forum / forum.post / _order : _order is now 'is_correct DESC, vote_count DESC, last_activity_date DESC' ('is_correct DESC, vote_count DESC, write_date DESC')
26
+ # NOTHING TO DO: Both fields (last_activity_date and write_date) is containing the same value in the moment of the migration
27
+
28
+ website_forum / website / forum_count (integer) : NEW
29
+ website_forum / website / forums_count (integer) : DEL
30
+ # DONE: pre-migration: Rename the field
31
+
32
+ ---XML records in module 'website_forum'---
33
+ ir.actions.act_url: website_forum.action_open_forum (noupdate) (noupdate switched)
34
+ ir.ui.view: website_forum.forum_post_view_kanban (noupdate) (noupdate switched)
35
+ # DONE: post-migration: switch noupdate in this phase for getting updates before
36
+
37
+ NEW ir.actions.act_window: website_forum.forum_forum_action
38
+ NEW ir.actions.act_window: website_forum.forum_post_action (noupdate)
39
+ NEW ir.actions.act_window: website_forum.forum_post_action_favorites (noupdate)
40
+ NEW ir.actions.act_window: website_forum.forum_post_action_forum_main (noupdate)
41
+ NEW ir.actions.act_window: website_forum.forum_post_reason_action
42
+ DEL ir.actions.act_window: website_forum.action_forum_favorites
43
+ DEL ir.actions.act_window: website_forum.action_forum_forum
44
+ DEL ir.actions.act_window: website_forum.action_forum_post
45
+ DEL ir.actions.act_window: website_forum.action_forum_posts
46
+ DEL ir.actions.act_window: website_forum.forum_post_reasons_action
47
+ NEW ir.model.access: website_forum.access_forum_forum_employee
48
+ NEW ir.model.access: website_forum.access_forum_forum_portal
49
+ NEW ir.model.access: website_forum.access_forum_forum_public
50
+ DEL ir.model.access: website_forum.access_forum_forum
51
+ NEW ir.ui.view: website_forum.follow
52
+ NEW ir.ui.view: website_forum.forum_forum_view_form
53
+ NEW ir.ui.view: website_forum.forum_forum_view_search
54
+ NEW ir.ui.view: website_forum.forum_forum_view_tree
55
+ NEW ir.ui.view: website_forum.forum_index_tags
56
+ NEW ir.ui.view: website_forum.forum_model_nav
57
+ NEW ir.ui.view: website_forum.forum_post_view_form (noupdate)
58
+ NEW ir.ui.view: website_forum.forum_post_view_graph (noupdate)
59
+ NEW ir.ui.view: website_forum.forum_post_view_search (noupdate)
60
+ NEW ir.ui.view: website_forum.forum_post_view_tree (noupdate)
61
+ NEW ir.ui.view: website_forum.gamification_karma_tracking_view_search
62
+ NEW ir.ui.view: website_forum.header_welcome_message
63
+ NEW ir.ui.view: website_forum.no_results_message
64
+ NEW ir.ui.view: website_forum.post_display
65
+ NEW ir.ui.view: website_forum.post_dropdown
66
+ NEW ir.ui.view: website_forum.post_stats
67
+ NEW ir.ui.view: website_forum.profile_access_denied
68
+ NEW ir.ui.view: website_forum.user_sidebar_body
69
+ NEW ir.ui.view: website_forum.user_sidebar_header
70
+ NEW ir.ui.view: website_forum.user_sidebar_mobile
71
+ DEL ir.ui.view: website_forum.forum_nav_header
72
+ DEL ir.ui.view: website_forum.forum_post_options
73
+ DEL ir.ui.view: website_forum.forum_view_search
74
+ DEL ir.ui.view: website_forum.moderation_display_post_answer
75
+ DEL ir.ui.view: website_forum.post_answers
76
+ DEL ir.ui.view: website_forum.post_reply
77
+ DEL ir.ui.view: website_forum.private_profile
78
+ DEL ir.ui.view: website_forum.question_dropdown
79
+ DEL ir.ui.view: website_forum.tag
80
+ DEL ir.ui.view: website_forum.view_forum_forum_form
81
+ DEL ir.ui.view: website_forum.view_forum_forum_list
82
+ DEL ir.ui.view: website_forum.view_forum_post_form
83
+ DEL ir.ui.view: website_forum.view_forum_post_graph
84
+ DEL ir.ui.view: website_forum.view_forum_post_list
85
+ DEL ir.ui.view: website_forum.view_forum_post_search
86
+ # NOTHING TO DO:ir noupdate=0 or new noupdate=1 stuff
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: odoo-addon-openupgrade_scripts
3
- Version: 17.0.1.0.1.325
3
+ Version: 17.0.1.0.1.328
4
4
  Requires-Python: >=3.10
5
5
  Requires-Dist: odoo>=17.0a,<17.1dev
6
6
  Requires-Dist: openupgradelib
@@ -115,10 +115,10 @@ odoo/addons/openupgrade_scripts/scripts/digest/17.0.1.1/pre-migration.py,sha256=
115
115
  odoo/addons/openupgrade_scripts/scripts/digest/17.0.1.1/upgrade_analysis.txt,sha256=oPv4iPppLTf4jX6IovBfLVYGjqEvmWix7HiIjgeSkao,396
116
116
  odoo/addons/openupgrade_scripts/scripts/digest/17.0.1.1/upgrade_analysis_work.txt,sha256=jiHe3jMCLNJJ1cZvVVpq3cV4ggEbyFI7dRL8rJu6nYY,439
117
117
  odoo/addons/openupgrade_scripts/scripts/event/17.0.1.8/noupdate_changes.xml,sha256=LEEyj94Yk0Sr5EyKRglu0OXM2r-LLt1BWcYAqfgi-NQ,52136
118
- odoo/addons/openupgrade_scripts/scripts/event/17.0.1.8/post-migration.py,sha256=nfXrBctzNW3P9z9CMQ3aSnB-XRVnYYSixrfGH4UQrU8,876
119
- odoo/addons/openupgrade_scripts/scripts/event/17.0.1.8/pre-migration.py,sha256=y-uLS0KuyCZ-pefOdcKAJ22jSYx2E-Zdkcfex2KWU2Y,1120
118
+ odoo/addons/openupgrade_scripts/scripts/event/17.0.1.8/post-migration.py,sha256=_AxPRGn3vLMVdqJBivk0Xp3yVIh0HRxkopHAZtMrSac,1170
119
+ odoo/addons/openupgrade_scripts/scripts/event/17.0.1.8/pre-migration.py,sha256=cYUo2_uhu6PEbaKRkLFsF5dV9AxiAsNh-0cCKztLsUw,1300
120
120
  odoo/addons/openupgrade_scripts/scripts/event/17.0.1.8/upgrade_analysis.txt,sha256=5FaEY5kMt6XA2T3VzU8F5u2CTmh7WZchRjKHl-keSew,4154
121
- odoo/addons/openupgrade_scripts/scripts/event/17.0.1.8/upgrade_analysis_work.txt,sha256=bdc7HjFYwds3t8aaUuYJr9oIhIjuD8slTCc4H3gAaps,4995
121
+ odoo/addons/openupgrade_scripts/scripts/event/17.0.1.8/upgrade_analysis_work.txt,sha256=xNOeFnYMoQD38U56ROBbhTvmP_RjwtamPjbS19MrvP0,5078
122
122
  odoo/addons/openupgrade_scripts/scripts/event_booth/17.0.1.1/noupdate_changes.xml,sha256=iipsblz99fuanBEY661nPirN39O3eOGjW1bT2JwiWss,2381
123
123
  odoo/addons/openupgrade_scripts/scripts/event_booth/17.0.1.1/upgrade_analysis.txt,sha256=sF-T-vRsKVL8z6zOaXX1EzIZa7WJ1hL9-dlN5wq5mEk,588
124
124
  odoo/addons/openupgrade_scripts/scripts/event_booth_sale/17.0.1.2/upgrade_analysis.txt,sha256=93zxvY5pNeVDm0H25cv9YJmV45VQ0rN12h9uAqabxzU,552
@@ -705,8 +705,11 @@ odoo/addons/openupgrade_scripts/scripts/website_event_track_live/17.0.1.0/upgrad
705
705
  odoo/addons/openupgrade_scripts/scripts/website_event_track_quiz/17.0.1.0/upgrade_analysis.txt,sha256=UhqqYMoCUY3akNEdgtGeVw35anBJUQjSgit8c1xx_PA,195
706
706
  odoo/addons/openupgrade_scripts/scripts/website_form_project/17.0.1.0/upgrade_analysis.txt,sha256=ZOWcB0tufrrhjRnUwoW2RRk638uox68dGHZ1CM1RR5g,266
707
707
  odoo/addons/openupgrade_scripts/scripts/website_form_project/17.0.1.0/upgrade_analysis_work.txt,sha256=gXR6Ku5J7PTlYCZFAl2RL-8438R1dmA2m0oLwAgySs8,295
708
- odoo/addons/openupgrade_scripts/scripts/website_forum/17.0.1.2/noupdate_changes.xml,sha256=WMg5aQakOKsPS7IS8IeM8Siqnx22XwCEBPD1WvpjNvk,203
708
+ odoo/addons/openupgrade_scripts/scripts/website_forum/17.0.1.2/noupdate_changes.xml,sha256=Hog7k5P9703xUPC6uRIjaLuvgMlpLkBUTZDwWeKPea0,212
709
+ odoo/addons/openupgrade_scripts/scripts/website_forum/17.0.1.2/post-migration.py,sha256=Q2Wo5QJPeIXTcfud-PbAm-oW9CvsKizoGKUP2vGklP8,420
710
+ odoo/addons/openupgrade_scripts/scripts/website_forum/17.0.1.2/pre-migration.py,sha256=0w7ur-SKzbodJDQ_7T8DTIaGiJtQnoowJaomJLh_r2k,1049
709
711
  odoo/addons/openupgrade_scripts/scripts/website_forum/17.0.1.2/upgrade_analysis.txt,sha256=maKZgyf6btXV16pKT1OGCoLQmvDm8AA1rvODhjs5lMc,4725
712
+ odoo/addons/openupgrade_scripts/scripts/website_forum/17.0.1.2/upgrade_analysis_work.txt,sha256=I2bAwbLljmEqJLP1sjqwZKfwkeopb8BtdzNwIlwLdIE,5392
710
713
  odoo/addons/openupgrade_scripts/scripts/website_hr_recruitment/17.0.1.1/pre-migration.py,sha256=-3pgpO8jSwfET5mZB3mN3GVlgiqMnAYbEeyv-dnyop4,718
711
714
  odoo/addons/openupgrade_scripts/scripts/website_hr_recruitment/17.0.1.1/upgrade_analysis.txt,sha256=fgkQdUCtQylRlge2ReZ4TXhBs2KXEeFuHroNSLvPgFY,799
712
715
  odoo/addons/openupgrade_scripts/scripts/website_hr_recruitment/17.0.1.1/upgrade_analysis_work.txt,sha256=rv3UI_z7rwLVh_ddyvi6X8709hkONmkvSd9kwKu0xp4,908
@@ -753,7 +756,7 @@ odoo/addons/openupgrade_scripts/scripts/website_twitter/17.0.1.0/upgrade_analysi
753
756
  odoo/addons/openupgrade_scripts/static/description/banner.png,sha256=KTIBu4gfxeZVw9zjs_fivTgFEOeaAorlBxajmCA1p6k,26859
754
757
  odoo/addons/openupgrade_scripts/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
755
758
  odoo/addons/openupgrade_scripts/static/description/index.html,sha256=iV41-zYBM4uvZPuunpcr7bQeRgBaojVsKo_gkeyJyA4,12639
756
- odoo_addon_openupgrade_scripts-17.0.1.0.1.325.dist-info/METADATA,sha256=9rTS77C-7hFe0yLU_IYys_enq5rfxcdFmxZgffom_Z0,3786
757
- odoo_addon_openupgrade_scripts-17.0.1.0.1.325.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
758
- odoo_addon_openupgrade_scripts-17.0.1.0.1.325.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
759
- odoo_addon_openupgrade_scripts-17.0.1.0.1.325.dist-info/RECORD,,
759
+ odoo_addon_openupgrade_scripts-17.0.1.0.1.328.dist-info/METADATA,sha256=Q-XYkJRovfqhkIZpoQ5E2DQxvQHJTIjzZnWz6XvXpUo,3786
760
+ odoo_addon_openupgrade_scripts-17.0.1.0.1.328.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
761
+ odoo_addon_openupgrade_scripts-17.0.1.0.1.328.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
762
+ odoo_addon_openupgrade_scripts-17.0.1.0.1.328.dist-info/RECORD,,