minhng92 / odoo-14-docker-compose

Set up Odoo 14 (released 2020) quickly for development/production using Docker Compose.
90 stars 99 forks source link

help with odoo.conf addons path #4

Closed JGStyle closed 3 years ago

JGStyle commented 3 years ago

help

odoo.conf addons_path

con you explain why you set the addons_path to /mnt/extra-addons even though there is none such directory and if I want to add my custom add-on where should I put it and is the /mnt/extra-addons path necessary?

thank you very much for helping

minhng92 commented 3 years ago

Hi @JGStyle , "/mnt/extra-addons" is the folder inside docker container, where custom addons will be loaded. Odoo server is also running inside docker container so it's able to access this folder.

In the docker-compose.yml line 33, the folder is mounted to addons folder on host.

So you just put your custom addons in odoo-14-docker-compose/addons, it's equivalent to putting the addons in "/mnt/extra-addons" (inside container).

JGStyle commented 3 years ago

this was very helpful, thank you