-
-
Notifications
You must be signed in to change notification settings - Fork 699
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[17.0][OU-ADD] gamification: Migration to 17.0
- Loading branch information
1 parent
89fbfd5
commit 6cbf151
Showing
3 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
openupgrade_scripts/scripts/gamification/17.0.1.0/post-migration.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Copyright 2024 Viindoo Technology Joint Stock Company (Viindoo) | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
||
from openupgradelib import openupgrade | ||
|
||
|
||
@openupgrade.migrate() | ||
def migrate(env, version): | ||
openupgrade.load_data(env, "gamification", "17.0.1.0/noupdate_changes.xml") |
29 changes: 29 additions & 0 deletions
29
openupgrade_scripts/scripts/gamification/17.0.1.0/upgrade_analysis_work.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
---Models in module 'gamification'--- | ||
---Fields in module 'gamification'--- | ||
gamification / gamification.badge / message_main_attachment_id (many2one): DEL relation: ir.attachment | ||
gamification / gamification.challenge / message_main_attachment_id (many2one): DEL relation: ir.attachment | ||
gamification / gamification.challenge / report_message_group_id (many2one): relation is now 'discuss.channel' ('mail.channel') [nothing to do] | ||
# NOTHING TO DO: feature removed | ||
|
||
gamification / gamification.karma.tracking / _order : _order is now 'tracking_date desc, id desc' ('tracking_date DESC') | ||
gamification / gamification.karma.tracking / gain (integer) : NEW hasdefault: compute | ||
gamification / gamification.karma.tracking / origin_ref (reference) : NEW hasdefault: default | ||
gamification / gamification.karma.tracking / origin_ref_model_name (selection): NEW selection_keys: function, isfunction: function, stored | ||
gamification / gamification.karma.tracking / reason (text) : NEW hasdefault: default | ||
# NOTHING TO DO: new feature | ||
|
||
gamification / gamification.karma.tracking / tracking_date (date) : type is now 'datetime' ('date') | ||
# NOTHING TO DO: values were already encoded in standard datetime format in psql | ||
|
||
---XML records in module 'gamification'--- | ||
NEW gamification.karma.tracking: gamification.karma_tracking_user_admin (noupdate) | ||
NEW gamification.karma.tracking: gamification.karma_tracking_user_root (noupdate) | ||
NEW ir.cron: gamification.ir_cron_consolidate (noupdate) | ||
DEL ir.cron: gamification.ir_cron_consolidate_last_month (noupdate) | ||
# NOTHING TO DO: New noupdate="1" records | ||
|
||
NEW ir.model.access: gamification.gamification_karma_rank_access_employee | ||
NEW ir.model.access: gamification.gamification_karma_rank_access_portal | ||
NEW ir.model.access: gamification.gamification_karma_rank_access_public | ||
DEL ir.model.access: gamification.gamification_karma_rank_access_all | ||
# NOTHING TO DO: new feature |