-
-
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
6cbf151
commit fe2e823
Showing
3 changed files
with
86 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
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
16
openupgrade_scripts/scripts/gamification/17.0.1.0/pre-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,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) |
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