Skip to content

Commit

Permalink
[17.0][OU-ADD] gamification: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
acpMicrocom committed Oct 29, 2024
1 parent 6cbf151 commit fe2e823
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 1 deletion.
67 changes: 67 additions & 0 deletions odoo-server.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
[options]
addons_path = /home/alexis/Odoo/odoo-17.0/addons,/home/alexis/Odoo/odoo-17.0/odoo/addons,/home/alexis/Project/exk_addons/OpenUpgrade
csv_internal_sep = ,
data_dir = /home/alexis/.local/share/Odoo17
db_host = localhost
db_maxconn = 64
db_name = False
db_password = odoo
db_port = 5432
db_sslmode = prefer
db_template = template0
db_user = odoo
dbfilter =
demo = {}
email_from = False
from_filter = False
geoip_database = /usr/share/GeoIP/GeoLite2-City.mmdb
http_enable = True
http_interface = localhost
http_port = 8069
import_partial =
limit_memory_hard = 2147483648
limit_memory_soft = 2147483648
limit_request = 8192
limit_time_cpu = 1500
limit_time_real = 3000
limit_time_real_async = 300
limit_time_real_cron = -1
list_db = True
log_db = False
log_db_level = warning
log_handler = :INFO
log_level = info
logfile =
logrotate = False
longpolling_port = 8072
max_async_threads = 4
max_cron_threads = 2
osv_memory_age_limit = False
osv_memory_count_limit = False
pg_path = /usr/lib/postgresql/12/bin
pidfile =
proxy_mode = False
reportgz = False
screencasts =
screenshots = /tmp/odoo_tests
server_wide_modules = base,web
smtp_password = False
smtp_port = 25
smtp_server = localhost
smtp_ssl = False
smtp_ssl_certificate_filename = False
smtp_ssl_private_key_filename = False
smtp_user = False
syslog = False
test_enable = False
test_file =
test_tags = None
transient_age_limit = 1.0
translate_modules = ['all']
unaccent = False
upgrade_path = /home/alexis/Project/exk_addons/OpenUpgrade/openupgrade_scripts/scripts
without_demo = False
workers = 8
xmlrpcs = False
test_queue_job_no_delay = 1
admin_passwd = $pbkdf2-sha512$600000$yPl/D8F4r9Vai1FKSclZyw$70L5q66B4zJn2IGXg2kvvt.Xf0WOfwK/KHbIINiehoSMiYmQ4nF7y414QprecD6ByyR/Oxc9Br2iGJooONf9dw
16 changes: 16 additions & 0 deletions openupgrade_scripts/scripts/gamification/17.0.1.0/pre-migration.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright 2024 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from openupgradelib import openupgrade

_xmlid_renames = [
(
"gamification.ir_cron_consolidate_last_month",
"gamification.ir_cron_consolidate",
)
]


@openupgrade.migrate()
def migrate(env, version):
openupgrade.rename_xmlids(env.cr, _xmlid_renames)
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ gamification / gamification.karma.tracking / tracking_date (date) : typ
---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)
# NOTHING TO DO: New noupdate="1" records

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
# DONE: pre-migration: XML-ID renamed

NEW ir.model.access: gamification.gamification_karma_rank_access_employee
NEW ir.model.access: gamification.gamification_karma_rank_access_portal
Expand Down

0 comments on commit fe2e823

Please sign in to comment.