Project

General

Profile

Install Odoo with OCA repository » History » Version 11

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 3 Olivier Bitsch
~~~
25
26
Then add the OCA path into you `/etc/odoo/odoo.conf` config file
27
28
~~~
29
addons_path = /usr/share/odoo-oca/,/usr/lib/python3/dist-packages/odoo/addons
30 1 Olivier Bitsch
~~~
31 3 Olivier Bitsch
32 7 Olivier Bitsch
Restart Odoo to care the new config file
33 3 Olivier Bitsch
34
~~~
35 1 Olivier Bitsch
systemctl restart odoo
36
~~~
37
38 7 Olivier Bitsch
List all modules
39
40
~~~
41
apt search odoo-oca
42
~~~
43
44
Install all modules (probably not required for your instance).
45 3 Olivier Bitsch
46
~~~
47 6 Olivier Bitsch
apt install odoo-oca*
48 3 Olivier Bitsch
~~~
49 8 Olivier Bitsch
50
For a complete list of module, read [[List of modules]] page.