Setting up the configuration file

Adding the --save option when starting an Odoo server saves the configuration used in the ~/.odoorc file. We can use this file as a starting point for our server configuration, which will be stored at /etc/odoo, as shown in the following code:

$ sudo su -c "~/odoo-11.0/odoo-bin -d odoo-prod" \" --db-filter='^odoo-prod$' --without-demo=all" \" --save --stop-after-init" odoo

This will have the configuration parameters to be used by our server instance.

The former .openerp_serverrc config file is still supported, and it is used if found. This can cause some confusion when setting up Odoo 10 or 11 in a machine that was also used to run the previous Odoo versions. In this case, the --save option might be updating ...

Get Odoo 11 Development Essentials - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.