Install Odoo with OCA repository » History » Version 12
Olivier Bitsch, 10/05/2023 11:44 AM
| 1 | 1 | Olivier Bitsch | # How to use Odoo OCA repository |
|---|---|---|---|
| 2 | |||
| 3 | 7 | Olivier Bitsch | ## Requirements |
| 4 | 1 | Olivier Bitsch | |
| 5 | 10 | Olivier Bitsch | Install Odoo |
| 6 | 1 | Olivier Bitsch | |
| 7 | ~~~ |
||
| 8 | 10 | Olivier Bitsch | VERSION=16.0 # Define the version you want here |
| 9 | NAME=odoo |
||
| 10 | KEY_URL="https://nightly.odoo.com/odoo.key" |
||
| 11 | APT_URL="http://nightly.odoo.com/${VERSION}/nightly/deb/ ./" |
||
| 12 | curl -fsSL ${KEY_URL} | gpg -o /etc/apt/trusted.gpg.d/${PACKAGE}.gpg --dearmor |
||
| 13 | echo "deb [signed-by=/etc/apt/trusted.gpg.d/${PACKAGE}.gpg] ${APT_URL}" > /etc/apt/sources.list.d/${NAME}.list |
||
| 14 | apt update |
||
| 15 | apt install ${PACKAGE} |
||
| 16 | 7 | Olivier Bitsch | ~~~ |
| 17 | |||
| 18 | ## Process |
||
| 19 | |||
| 20 | Create new repository file for APT with the following commands. |
||
| 21 | |||
| 22 | ~~~ |
||
| 23 | 11 | Olivier Bitsch | echo "deb [trusted=yes] https://projects.iabsis.com/repository/odoo-oca/debian ${VERSION} main" > /etc/apt/sources.list.d/odoo-oca.list |
| 24 | 12 | Olivier Bitsch | apt update |
| 25 | 3 | Olivier Bitsch | ~~~ |
| 26 | 1 | Olivier Bitsch | |
| 27 | 12 | Olivier Bitsch | List all modules |
| 28 | 1 | Olivier Bitsch | |
| 29 | 3 | Olivier Bitsch | ~~~ |
| 30 | 12 | Olivier Bitsch | apt search odoo-oca |
| 31 | 1 | Olivier Bitsch | ~~~ |
| 32 | |||
| 33 | 12 | Olivier Bitsch | Install all modules (probably not required for your instance). |
| 34 | 1 | Olivier Bitsch | |
| 35 | 3 | Olivier Bitsch | ~~~ |
| 36 | 12 | Olivier Bitsch | apt install odoo-oca* |
| 37 | 1 | Olivier Bitsch | ~~~ |
| 38 | |||
| 39 | 12 | Olivier Bitsch | For a complete list of module, read [[List of modules]] page. |
| 40 | 1 | Olivier Bitsch | |
| 41 | 12 | Olivier Bitsch | Then add the OCA path into you `/etc/odoo/odoo.conf` config file |
| 42 | |||
| 43 | 7 | Olivier Bitsch | ~~~ |
| 44 | 12 | Olivier Bitsch | addons_path = /usr/share/odoo-oca/,/usr/lib/python3/dist-packages/odoo/addons |
| 45 | 7 | Olivier Bitsch | ~~~ |
| 46 | 3 | Olivier Bitsch | |
| 47 | 12 | Olivier Bitsch | Restart Odoo to care the new config file |
| 48 | 6 | Olivier Bitsch | |
| 49 | 3 | Olivier Bitsch | ~~~ |
| 50 | 12 | Olivier Bitsch | systemctl restart odoo |
| 51 | 8 | Olivier Bitsch | ~~~ |