How to generate configuration file in Odoo

After installing a new instance of Odoo, in most of the cases would be needed to generate a new configuration file. That can be done with the following command line:

python odoo/odoo-bin -c <path-to-config> -d <database-name> -s --stop-after-init 

Once the configuration file is generated with the default values it can be customized according to the needs of the server. The customized configuration file can be used by specifying it during server startup in the following way:

python odoo/odoo-bin -c <path-to-config> -d <database-name>