Once we have Odoo installed, we need to create a server instance. A server instance is an Odoo service listening on a specific port, 8060, by default, and using a database to store data.
The minimal command to start an Odoo instance using the mydb
database:
$ ./odoo.py -d mydb
If the database does not exist yet, Odoo will automatically try to create it, and then automatically creates all the database tables it needs.
If the user starting the service does not have privileges to create databases (a security best practice), we should use the PostgreSQL createdb
command to create it. beforehand.
Below is an example of the most common options used when working with Odoo:
$ ./odoo.py -d mydb --db-filter=^mydb$ --addons-path=./addons,../myaddons --xmlrpc-port=8080