Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
7 Trả lời
30904 Lượt xem

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. 


Ảnh đại diện
Huỷ bỏ

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

Tác giả

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.

Tác giả

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

Câu trả lời hay nhất

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).

Ảnh đại diện
Huỷ bỏ
Tác giả

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

Tác giả

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

Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 8 18
5286
addons_path issue Đã xử lý
2
thg 10 16
7630
3
thg 8 16
7027
0
thg 4 24
1211
0
thg 10 20
6080