Install Odoo with OCA repository » History » Version 10
Olivier Bitsch, 10/05/2023 11:43 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 | 5 | Olivier Bitsch | ODOO_VERSION=15.0 |
24 | 3 | Olivier Bitsch | echo "deb [trusted=yes] https://projects.iabsis.com/repository/odoo-oca/debian ${ODOO_VERSION} main" > /etc/apt/sources.list.d/odoo-oca.list |
25 | ~~~ |
||
26 | |||
27 | Then add the OCA path into you `/etc/odoo/odoo.conf` config file |
||
28 | |||
29 | ~~~ |
||
30 | addons_path = /usr/share/odoo-oca/,/usr/lib/python3/dist-packages/odoo/addons |
||
31 | 1 | Olivier Bitsch | ~~~ |
32 | 3 | Olivier Bitsch | |
33 | 7 | Olivier Bitsch | Restart Odoo to care the new config file |
34 | 3 | Olivier Bitsch | |
35 | ~~~ |
||
36 | 1 | Olivier Bitsch | systemctl restart odoo |
37 | ~~~ |
||
38 | |||
39 | 7 | Olivier Bitsch | List all modules |
40 | |||
41 | ~~~ |
||
42 | apt search odoo-oca |
||
43 | ~~~ |
||
44 | |||
45 | Install all modules (probably not required for your instance). |
||
46 | 3 | Olivier Bitsch | |
47 | ~~~ |
||
48 | 6 | Olivier Bitsch | apt install odoo-oca* |
49 | 3 | Olivier Bitsch | ~~~ |
50 | 8 | Olivier Bitsch | |
51 | For a complete list of module, read [[List of modules]] page. |