Passa al contenuto
Menu
La domanda è stata contrassegnata
1 Rispondi
2540 Visualizzazioni

Hi

I want build a custom module in my odoo on docker, i start by getting docker

docker exec -it odoo /bin/bash

then i want scaffold docker to get odoo-bin
odoo scaffold <module location>



full log:

Traceback (most recent call last):
File "/usr/bin/odoo", line 8, in
odoo.cli.main()
File "/usr/lib/python3/dist-packages/odoo/cli/command.py", line 61, in main
o.run(args)
File "/usr/lib/python3/dist-packages/odoo/cli/scaffold.py", line 38, in run
directory(args.dest, create=True),
File "/usr/lib/python3/dist-packages/odoo/cli/scaffold.py", line 74, in directory
os.makedirs(expanded)
File "/usr/lib/python3.9/os.py", line 215, in makedirs
makedirs(head, exist_ok=exist_ok)
File "/usr/lib/python3.9/os.py", line 215, in makedirs
makedirs(head, exist_ok=exist_ok)
File "/usr/lib/python3.9/os.py", line 225, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/home/DanielKasprow'



How can i fix this, thank for helping



i use odoo 15, python 3.9


Avatar
Abbandona
Risposta migliore

I have a project I've been working on for a few months now. A fully functional dockerized environment designed for beginners and advanced developers. This will make anyone able to develop locally, focusing on custom add-ons, and the ability to check the community/enterprise code while developing, so everybody can learn how things are done within the same framework. As for now, it has worked with Odoo 14, 15, and 16. Haven't tested in previous versions.


This project is also set up for SSL, so you can take your app directly from local to prod with basically no additional configuration, but cloning the repo and bringing up the containers.


I've been testing this base setup with some customers for a few months and so far everything works well.


If you are interested you can contact me, and I can share the docker project with you before I publish it.


I'm really interested in giving the easy way to every new developer that wants to learn Odoo with the best practices of today's world.

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
feb 25
3205
2
nov 24
24515
1
nov 22
4441
1
ago 23
3483