Setup
Setup
Use postgres 10.0 for odoo:13 and postgres 10.15 for odoo:14
Creating an environment:
Go to folder env then use this command to create an environment
$ cd env
$ virtualenv -p python3.7 <your env name>
then go to the environment folder that created from the above command and use
command to activate environment.
$ pip3 install -r src/odoo/requirements.txt
$ source <env>/bin/activate
to install the dependencies use the command
$ pip3 install -r src/odoo/requirements.txt
$ src/odoo/odoo-bin -sc env/<env name>/config/<config file name>.conf
Custom Modules:
For custom modules create a folder with name extra_addons and give the
path of that folder in environment configuration file in addons_path.
$ mkdir extra_addons
$ nano env/<your env name>/config/<config file name>.conf
Pycharm Configuration:
Go to setting then project and then select python interpreter.Click on setting then
add to add an environment and select the folder in environment bin/python3.7.