Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error with import custom module odoo #5

Open
herybrts opened this issue Jan 10, 2024 · 6 comments
Open

error with import custom module odoo #5

herybrts opened this issue Jan 10, 2024 · 6 comments

Comments

@herybrts
Copy link

I successfully installed odoo this way. Thank you in advance. After I tried, I found a problem that I couldn't import the custom module. How can I install the custom module?

@minhng92
Copy link
Owner

Hi @herybrts ,

I guess the Odoo process inside Docker container cannot access your custom module. The cause may come from permission issue. The easiest way you can try is setting 777 to your customized addon.

chmod -R 777 addons/CUSTOM_MODULE

Restart Odoo container to make sure the change take affect.

docker-compose restart

@herybrts
Copy link
Author

wow thank you, I tried this method successfully. I can now use custom addons on Odoo.

I also want to ask, when I log in to the Odoo dashboard, why does the Lost Connection message always appear?

Is there anything that needs to be set in the Odoo config?

@keesfluitman
Copy link

i've tried it on openmediavault and my unraid server. Set ownership and chmod to nobody and all. But it still won't find my modules. Any other tips? I've also tested it on Debian VM, works fine....So doesn't seem docker is the way for me on this one. Now I have to find a proper backup/load balancing solution.

@keesfluitman
Copy link

fixed. I was mounting the wrong path. And my custom config wasnt working so I was using default config. That meant /mnt/extra-addons was used and had to be mounted.
I do wonder, if docker in combination with a custom odoo.conf file would be possible to get working...maybe I should have it premade, mount, before I did the main initialization config? Meaning I'd have to manually create the database?

@euroblaze
Copy link

@minhng92

Isn't it a security bad-practice to do this?

chmod -R 777 addons/CUSTOM_MODULE

Thanks

@sabryyoussef
Copy link

how to add enterbrise odoo folder outside addons or inside it and should i write full path for my addons or just addons/custum

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants