Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
17854 Visualizzazioni

I'm trying to place 3rd party addons into a separate folder.

The relevant line of my .conf file is this:

addons_path = /opt/odoo/addons, /opt/odoo/custom-addons

If I place a 3rd party addon into the first listed folder, there's no problem, but it does not work for the second. Do I need some kind of chmod or chown for the folder? Restarting the odoo-server service doesn't help.

I setup my Odoo Community instance using this guide:  https://www.linode.com/docs/websites/cms/install-odoo-10-on-ubuntu-16-04.

I also looked at this guide, but it didn't work for me: https://www.odoo.com/forum/help-1/question/custom-modules-folder-path-29358

Avatar
Abbandona
Risposta migliore

Your line in the .conf file is fine. Change the owner of the addons directory to odoo. Change the directory access rights to 755 and the files access rights to 644.

sudo chown -R root:odoo /opt/odoo/custom-addons

sudo find /opt/odoo/custom-addons -type f -exec chmod 644 {} \; sudo find /opt/odoo/custom-addons -type d -exec chmod 755 {} \;
Avatar
Abbandona
Autore

Hi Ermin, I did the chown, so ls now yields this:

drwxr-xr-x 3 odoo odoo 4096 Jun 15 21:38 custom-addons/

However, running the second or third commands leads to this repeatedly being outputted:

chmod: cannot access '': No such file or directory

Please advise. Thanks!

Please make sure to use the proper path. I did that hundreds of times and it works.