From d17ecab14793d7a944c6b5267ef41355bec1171e Mon Sep 17 00:00:00 2001 From: Christophe Monniez Date: Mon, 19 Jun 2023 14:39:15 +0000 Subject: [PATCH] [FIX] deploy: reference the config parameter The deploy documentation is assuming that `/etc/odoo.conf` is the default config file, which is not the case. With this commit, the configuration file references the cli documentation. closes odoo/documentation#4806 X-original-commit: 8aed7988bae471f8bc3d1e34cea707cce0d62b97 Signed-off-by: Antoine Vandevenne (anv) Signed-off-by: Christophe Monniez (moc) --- content/administration/install/deploy.rst | 10 +++++----- content/developer/reference/cli.rst | 2 ++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/content/administration/install/deploy.rst b/content/administration/install/deploy.rst index 7aecce747..514a8ce46 100644 --- a/content/administration/install/deploy.rst +++ b/content/administration/install/deploy.rst @@ -43,7 +43,7 @@ Configuration samples * Show only databases with names beginning with 'mycompany' -in ``/etc/odoo.conf`` set: +in :ref:`the configuration file ` set: .. code-block:: ini @@ -55,7 +55,7 @@ in ``/etc/odoo.conf`` set: was sent to ``www.mycompany.com`` or ``mycompany.co.uk``, but not for ``www2.mycompany.com`` or ``helpdesk.mycompany.com``. -in ``/etc/odoo.conf`` set: +in :ref:`the configuration file ` set: .. code-block:: ini @@ -150,7 +150,7 @@ Configuration sample * with 'pwd' as a password * filtering only db with a name beginning with 'mycompany' -in ``/etc/odoo.conf`` set: +in :ref:`the configuration file ` set: .. code-block:: ini @@ -238,7 +238,7 @@ Configuration sample * We'll use 8 workers + 1 for cron. We'll also use a monitoring system to measure cpu load, and check if it's between 7 and 7.5 . * RAM = 9 * ((0.8*150) + (0.2*1024)) ~= 3Go RAM for Odoo -in ``/etc/odoo.conf``: +in :ref:`the configuration file `: .. code-block:: ini @@ -273,7 +273,7 @@ Configuration sample * Redirect http requests to https * Proxy requests to odoo -in ``/etc/odoo.conf`` set: +in :ref:`the configuration file ` set: .. code-block:: ini diff --git a/content/developer/reference/cli.rst b/content/developer/reference/cli.rst index 715511208..7e380fdb1 100644 --- a/content/developer/reference/cli.rst +++ b/content/developer/reference/cli.rst @@ -620,6 +620,8 @@ Some conversions don't match the pattern: * :option:`--i18n-import` and :option:`--i18n-export` aren't available at all from configuration files +.. _reference/cmdline/config_file: + The default configuration file is :file:`{$HOME}/.odoorc` which can be overridden using :option:`--config `. Specifying :option:`--save ` will save the current configuration state back