diff --git a/docsource/modules160-170.rst b/docsource/modules160-170.rst index f1d925eea135..4dffc42f13b6 100644 --- a/docsource/modules160-170.rst +++ b/docsource/modules160-170.rst @@ -140,7 +140,7 @@ Module coverage 16.0 -> 17.0 +---------------------------------------------------+----------------------+-------------------------------------------------+ | fleet | | | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| gamification | | | +| gamification | Done | | +---------------------------------------------------+----------------------+-------------------------------------------------+ | gamification_sale_crm | | | +---------------------------------------------------+----------------------+-------------------------------------------------+ diff --git a/openupgrade_scripts/scripts/gamification/17.0.1.0/post-migration.py b/openupgrade_scripts/scripts/gamification/17.0.1.0/post-migration.py new file mode 100644 index 000000000000..ea636da3f470 --- /dev/null +++ b/openupgrade_scripts/scripts/gamification/17.0.1.0/post-migration.py @@ -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") diff --git a/openupgrade_scripts/scripts/gamification/17.0.1.0/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/gamification/17.0.1.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..2d77ceded612 --- /dev/null +++ b/openupgrade_scripts/scripts/gamification/17.0.1.0/upgrade_analysis_work.txt @@ -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