odoo-addon-openupgrade-scripts 17.0.1.0.1.325__py3-none-any.whl → 17.0.1.0.1.327__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/website_forum/17.0.1.2/noupdate_changes.xml +2 -2
- odoo/addons/openupgrade_scripts/scripts/website_forum/17.0.1.2/post-migration.py +12 -0
- odoo/addons/openupgrade_scripts/scripts/website_forum/17.0.1.2/pre-migration.py +33 -0
- odoo/addons/openupgrade_scripts/scripts/website_forum/17.0.1.2/upgrade_analysis_work.txt +86 -0
- {odoo_addon_openupgrade_scripts-17.0.1.0.1.325.dist-info → odoo_addon_openupgrade_scripts-17.0.1.0.1.327.dist-info}/METADATA +1 -1
- {odoo_addon_openupgrade_scripts-17.0.1.0.1.325.dist-info → odoo_addon_openupgrade_scripts-17.0.1.0.1.327.dist-info}/RECORD +8 -5
- {odoo_addon_openupgrade_scripts-17.0.1.0.1.325.dist-info → odoo_addon_openupgrade_scripts-17.0.1.0.1.327.dist-info}/WHEEL +0 -0
- {odoo_addon_openupgrade_scripts-17.0.1.0.1.325.dist-info → odoo_addon_openupgrade_scripts-17.0.1.0.1.327.dist-info}/top_level.txt +0 -0
@@ -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
|
@@ -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=
|
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.
|
757
|
-
odoo_addon_openupgrade_scripts-17.0.1.0.1.
|
758
|
-
odoo_addon_openupgrade_scripts-17.0.1.0.1.
|
759
|
-
odoo_addon_openupgrade_scripts-17.0.1.0.1.
|
759
|
+
odoo_addon_openupgrade_scripts-17.0.1.0.1.327.dist-info/METADATA,sha256=SHQL0Z8CXRuhftJHQVl9E-cdofyZvpSnYQmAAawZemQ,3786
|
760
|
+
odoo_addon_openupgrade_scripts-17.0.1.0.1.327.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
|
761
|
+
odoo_addon_openupgrade_scripts-17.0.1.0.1.327.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
|
762
|
+
odoo_addon_openupgrade_scripts-17.0.1.0.1.327.dist-info/RECORD,,
|
File without changes
|