Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
7 Răspunsuri
30720 Vizualizări

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. 


Imagine profil
Abandonează

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

Autor

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.

Autor

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

Cel mai bun răspuns

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

Imagine profil
Abandonează
Autor

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

Autor

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

Cel mai bun răspuns

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

Imagine profil
Abandonează

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

Related Posts Răspunsuri Vizualizări Activitate
0
aug. 18
5175
2
oct. 16
7461
3
aug. 16
6875
0
apr. 24
1109
0
oct. 20
5849