Project

General

Profile

Install Odoo with OCA repository » History » Version 7

Olivier Bitsch, 01/29/2023 03:43 PM

1 1 Olivier Bitsch
# How to use Odoo OCA repository
2
3 7 Olivier Bitsch
## Requirements
4 1 Olivier Bitsch
5 7 Olivier Bitsch
Before doing OCA module installation, you assume that Odoo is properly installed.
6
7 1 Olivier Bitsch
~~~
8 7 Olivier Bitsch
# > https://www.odoo.com/documentation/15.0/administration/install/install.html#repository
9
wget -O - https://nightly.odoo.com/odoo.key | apt-key add -
10
echo "deb http://nightly.odoo.com/15.0/nightly/deb/ ./" >> /etc/apt/sources.list.d/odoo.list
11
apt update && apt install -y odoo
12
~~~
13
14
## Process
15
16
Create new repository file for APT with the following commands.
17
18
~~~
19 5 Olivier Bitsch
ODOO_VERSION=15.0
20 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
21
~~~
22
23
Then add the OCA path into you `/etc/odoo/odoo.conf` config file
24
25
~~~
26
addons_path = /usr/share/odoo-oca/,/usr/lib/python3/dist-packages/odoo/addons
27 1 Olivier Bitsch
~~~
28 3 Olivier Bitsch
29 7 Olivier Bitsch
Restart Odoo to care the new config file
30 3 Olivier Bitsch
31
~~~
32 1 Olivier Bitsch
systemctl restart odoo
33
~~~
34
35 7 Olivier Bitsch
List all modules
36
37
~~~
38
apt search odoo-oca
39
~~~
40
41
Install all modules (probably not required for your instance).
42 3 Olivier Bitsch
43
~~~
44 6 Olivier Bitsch
apt install odoo-oca*
45 3 Olivier Bitsch
~~~