Hello community!
How can I install custom addons in odoo16 CE docker setup?
I cant find the odoo.conf file on my server and im not sure where to deploy these modules?
Thanks for your help!
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
Hi,
If you cannot find the odoo.conf file on your server, which means you use a Docker setup. you can try the following way to add custom addons.
create a folder for the custom_addons and mount the folder as a volume in the odoo container by adding the following line to docker-compose.yml file under volumes section:
volumes:
- ./config:/etc/odoo
- ./extra-addons:/mnt/extra-addons
Then create the odoo container (or update it). In your computer go to "extra-addons" folder inside your docker folder and put there the custom odoo modules.
Restart the container -> docker start db_name
Now in the Apps -> click update apps list and now you can see the custom apps
You can check this blog and forum for further help regarding odoo docker setup
please check this video also
Thanks
hello
In your config you should make sure that you have a "odoo.conf" file into you "config" folder and that odoo.conf could have this configuration
[options]
addons_path = /mnt/extra-addons
data_dir = /var/lib/odoo
Hi,
Did you add the addons path in the odoo.conf file? If the odoo.conf is not properly configured, it won't detect the modules located in your extra-addons path.
Open the odoo.conf file located in your ./config volume (i.e., /etc/odoo in your container). If the odoo.conf does not exist, create it. Make sure you add the following line to the odoo.conf file under [options]:
[options]
addons_path = /mnt/extra-addons
Restart the container and update the app list. Now the modules in the extra-addons folder should appear in the app list. For more information about setting up Odoo with Docker check out my blog post. I hope this helps.
I have tried to follow your steps but it is not working yet. I also looked at the youtube video, blog and forum but I dont get it. My Docker compose now looks like this:
version: '3'
services:
odoo:
image: odoo:16.0
env_file: .env
depends_on:
- postgres
ports:
- "127.0.0.1:8069:8069"
volumes:
- data:/var/lib/odoo
- ./config:/etc/odoo
- ./extra-addons:/mnt/extra-addons
postgres:
image: postgres:13
env_file: .env
volumes:
- db:/var/lib/postgresql/data/pgdata
volumes:
data:
db
I restarted the container and updated the app list.
Hi,
I have the same issue right now did you find the solution ?
Hi,
I don't know if you still have the problem, but have you checked the folder permissions to authorize the docker user ?
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
Feb 23
|
4078 | ||
|
5
Oct 23
|
5561 | ||
|
1
Jul 23
|
1128 | ||
|
2
Nov 22
|
3339 | ||
|
0
Aug 20
|
1881 |
Hi Savya Sachin,
big thanks for your fast response! I am not able to do it right now. Could you maybe help further?
This is the docker compose file:
version: '3'
services:
odoo:
image: odoo:16.0
env_file: .env
depends_on:
- postgres
ports:
- "127.0.0.1:8069:8069"
volumes:
- data:/var/lib/odoo
postgres:
image: postgres:13
env_file: .env
volumes:
- db:/var/lib/postgresql/data/pgdata
volumes:
data:
db:
The docker-compose.yml file is in root/odoo. I created a folder named "addons" under root/odoo so --> root/odoo/addons .
How can I link this correctly? I tried a few things but got error messages from the server like:
"ERROR: Named volume "odoo/addons:/mnt/extra-addons:rw" is used in service "odoo" but no declaration was found in the volumes section."
"docker: Error response from daemon: Cannot link to /odoo_postgres_1, as it does not belong to the default network."
Thanks!
I have updated the answer please check