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

I installed odoo 11 by following this link

https://www.getopenerp.com/install-odoo-11-on-ubuntu-16-04/

  1. I added a folder name addons in my home folder 

  2. copied some third party apps into the folder 

  3. Changed ownership of folder for odoo user  by typing following command (sudo chown odoo: /addons)

  4. edited by odoo.conf file in etc folder. added following addons path
    addons_path = /opt/odoo/addons,/opt/odoo/odoo/addons,/home/rck/addons,/addons

  5. Now when I run odoo 

  6. Activated developer mode with assets

  7. In apps menu clicked on update module list

  8. Apps fail to show?:(

It works fine when I add these apps in main /opt/odoo/odoo/addons but it totally ignores apps if added in custom path. Please help me solve the issue. 


아바타
취소

Have you defined config file when running? have a look at this link https://www.odoo.com/documentation/8.0/reference/cmdline.html

작성자

I tried that too first. It doesn't show up. My addons folder is outside (ie /addons)

so I tried with following command ./odoo-bin --addons-path=addons

custom app doesn't show up.

작성자

I got it working with following command

./odoo-bin --addons-path="/opt/odoo/odoo/addons,/addons"

main thing is, we need to pass original addons path with it. Custom addons path must have atleat one working module in it.

Following link helped me solve this.

https://stackoverflow.com/questions/38670514/how-to-add-a-custom-folder-to-odoo-py-addons-addons

베스트 답변

I believe you are confusing your addons paths. Besides the Odoo default paths, you have defined a path /home/rck/addons, which seems to be the path of a system user named "rck", then you have an addons path /addons, which is a root directory. So you should first clean up that mess. Make a custom addons directory and place it at /opt/odoo/custom/addons for example. Addionally, make sure not only to change ownership of the directories, but also the permissions inside the addons folder (755 for folders and 644 for files).

아바타
취소
작성자

I created a addons path as you said in /opt/odoo/odoo/custom/addons and added it to conf file.

I changed ownership of the file by following command

sudo chown odoo /opt/odoo/odoo/custom/addons

changed directory permission with following command

sudo chmod 755 /opt/odoo/odoo/custom/addons

changed file permission with following command

sudo chmod 644 /opt/odoo/odoo/custom/addons

Even now when I run odoo, I don't see my custom modules

작성자

I know I am doing something wrong in giving permission and ownership of folder. Please guide me to fix this.

베스트 답변

Please try one thing: activate developer mode then go to your apps then click on "Update Apps List".

아바타
취소

I am facepalming so hard right now. Thanks so much! This was all I needed to do.

관련 게시물 답글 화면 활동
0
8월 18
5303
addons_path issue 해결 완료
2
10월 16
7658
3
8월 16
7044
0
4월 24
1218
0
10월 20
6112