odooodoo-11

How to use an environment variable in the odoo.conf


I am trying to use an environment variable in the odoo.conf file to specify the path where the logs are stored. So far I have tried:

logfile = ${test.rueda}/odoo.log

But it does not work. Is there any way to achieve this?


Solution

  • The Odoo configuration files do not support access to environment variables.

    I can think of 2 possible approaches: