콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
17946 화면

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

아바타
취소
베스트 답변

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 {} \;
아바타
취소
작성자

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.