跳至內容
選單
此問題已被標幟
1 回覆
2563 瀏覽次數

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


頭像
捨棄
最佳答案

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.

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
2月 25
3286
2
11月 24
24941
1
11月 22
4493
1
8月 23
3522