Project

General

Profile

Create dev environment » History » Revision 2

Revision 1 (Olivier Bitsch, 01/19/2024 07:58 AM) → Revision 2/5 (Olivier Bitsch, 01/19/2024 08:03 AM)

# Create dev environment 

 Clone only the wanted branch (place everything in an empty folder 

 ``` 
 BRANCH=17.0 
 git clone --depth=1 --branch ${BRANCH} --single-branch https://github.com/odoo/odoo 
 ``` 

 Create virtualenv and install dependancies 

 ``` 
 python3 -m venv venv 
 . ./venv/bin/activate 
 pip install -r odoo/requirements.txt 
 ``` 

 To install OCA packages, download the xz file corresponding to your odoo version here 
 https://projects.iabsis.com/projects/odoo-oca/files 
 Extract into your project root folder and name it "oca", it should containing all oca addons. 

 Now copy odoo.conf config file into your root folder 

 ``` 
 cp odoo/odoo.conf odoo.conf 
 ```