Skip to content
Snippets Groups Projects
Commit 4fadf6b9 authored by Christophe Monniez's avatar Christophe Monniez
Browse files

[FIX] packaging: install productivity apps only in installers


closes odoo/odoo#100964

Signed-off-by: default avatarOlivier Dony <odo@odoo.com>
parent 5976e19a
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@ from odoo import api, tools, SUPERUSER_ID
def _auto_install_apps(cr, registry):
if not tools.config.get('default_productivity_apps', True):
if not tools.config.get('default_productivity_apps', False):
return
env = api.Environment(cr, SUPERUSER_ID, {})
env['ir.module.module'].sudo().search([
......
......@@ -6,3 +6,4 @@ db_port = False
db_user = odoo
db_password = False
;addons_path = /usr/lib/python3/dist-packages/odoo/addons
default_productivity_apps = True
......@@ -65,6 +65,7 @@ db_port = False
db_user = $ODOO_USER
db_password = False
addons_path = %{python3_sitelib}/odoo/addons
default_productivity_apps = True
" > $ODOO_CONFIGURATION_FILE
chown $ODOO_USER:$ODOO_GROUP $ODOO_CONFIGURATION_FILE
chmod 0640 $ODOO_CONFIGURATION_FILE
......
......@@ -254,6 +254,9 @@ Section $(TITLE_Odoo_Server) SectionOdoo_Server
WriteIniStr "$INSTDIR\server\odoo.conf" "options" "pg_path" "$INSTDIR\PostgreSQL\bin"
${EndIf}
# Productivity Apps
WriteIniStr "$INSTDIR\server\odoo.conf" "options" "default_productivity_apps" "True"
DetailPrint "Installing Windows service"
nsExec::ExecTOLog '"$INSTDIR\python\python.exe" "$INSTDIR\server\odoo-bin" --stop-after-init --logfile "$INSTDIR\server\odoo.log" -s'
${If} ${RunningX64}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment