How to do it…
To create the proposed instance layout, you need to perform the following steps:
- Create one directory per instance:
$ mkdir ~/odoo-dev/projectname $ cd ~/odoo-dev/projectname
- Create a Python
virtualenv
object in a subdirectory calledenv/
:$ python3 -m venv env
- Create some subdirectories, as follows:
$ mkdir src local bin filestore logs
The functions of the subdirectories are as follows:
src/
: This contains the clone of Odoo itself, as well as the various third-party add-on projects (we have added Odoo source code to the next step in this recipe).local/
: This is used to save your instance-specific add-ons.bin/
: This includes various helper executable shell scripts.filestore/
: This is used as a file store.logs/
(optional): This is used to store the server log files.
- Clone Odoo and install the requirements (refer to Chapter 1, Installing the Odoo Development Environment, for details on this):
$ git clone -b 14.0 --single-branch --depth 1 https://github...