Create dev environment » History » Version 3
Olivier Bitsch, 03/26/2024 08:48 AM
| 1 | 3 | Olivier Bitsch | # Create dev environment with OCA |
|---|---|---|---|
| 2 | 1 | Olivier Bitsch | |
| 3 | 3 | Olivier Bitsch | ## Requirements |
| 4 | 1 | Olivier Bitsch | |
| 5 | 3 | Olivier Bitsch | We assume you already have: |
| 6 | |||
| 7 | - VScode installed |
||
| 8 | - Python3 installed |
||
| 9 | - You have PostGreSQL |
||
| 10 | |||
| 11 | ## Setup process |
||
| 12 | |||
| 13 | ### Clone Odoo |
||
| 14 | |||
| 15 | Create an empty folder. If you plan to work with several odoo versions, you should create a folder with version name (e.g. odoo17). |
||
| 16 | |||
| 17 | > Due to virtual environment, don't rename or move this folder. |
||
| 18 | |||
| 19 | 1 | Olivier Bitsch | ``` |
| 20 | BRANCH=17.0 |
||
| 21 | git clone --depth=1 --branch ${BRANCH} --single-branch https://github.com/odoo/odoo |
||
| 22 | ``` |
||
| 23 | |||
| 24 | Create virtualenv and install dependancies |
||
| 25 | |||
| 26 | ``` |
||
| 27 | python3 -m venv venv |
||
| 28 | . ./venv/bin/activate |
||
| 29 | pip install -r odoo/requirements.txt |
||
| 30 | 2 | Olivier Bitsch | ``` |
| 31 | |||
| 32 | 1 | Olivier Bitsch | To install OCA packages, download the xz file corresponding to your odoo version here |
| 33 | 2 | Olivier Bitsch | https://projects.iabsis.com/projects/odoo-oca/files |
| 34 | 3 | Olivier Bitsch | |
| 35 | 2 | Olivier Bitsch | Extract into your project root folder and name it "oca", it should containing all oca addons. |
| 36 | |||
| 37 | 1 | Olivier Bitsch | Now copy odoo.conf config file into your root folder |
| 38 | 2 | Olivier Bitsch | |
| 39 | ``` |
||
| 40 | 3 | Olivier Bitsch | cp odoo/debian/odoo.conf odoo.conf |
| 41 | 2 | Olivier Bitsch | ``` |