[英]Odoo.sh : Issue to create new module structure in Production stage
Im trying to create a new module structure using the scaffold command in src/odoo/addons of the Production stage via odoo.sh's the editor.我试图通过 odoo.sh 的编辑器在生产阶段的 src/odoo/addons 中使用脚手架命令创建一个新的模块结构。
~/src/odoo/addons$ odoo-bin scaffold mymodule ~/src/odoo/addons$ odoo-bin 脚手架 mymodule
But I got the error like this: Traceback (most recent call last):但我得到了这样的错误: Traceback(最近一次通话):
File "/home/odoo/src/odoo/odoo-bin", line 8, in <module>
odoo.cli.main()
File "/home/odoo/src/odoo/odoo/cli/command.py", line 60, in main
o.run(args)
File "/home/odoo/src/odoo/odoo/cli/scaffold.py", line 39, in run
{'name': args.name})
File "/home/odoo/src/odoo/odoo/cli/scaffold.py", line 121, in render_to
os.makedirs(destdir)
File "/usr/lib/python3.6/os.py", line 220, in makedirs
mkdir(name, mode)
OSError: [Errno 30] Read-only file system: '/home/odoo/src/odoo/addons/mymodule'
If creating the module structure in another stages, I can create it normally.如果在其他阶段创建模块结构,我可以正常创建它。
Am I not permission to create modules in the production stage, or the production stage is just used for merge with other stages?我是不允许在生产阶段创建模块,还是生产阶段只是用于与其他阶段合并?
Please help!请帮忙!
Thank you!谢谢!
Does the /home/odoo/src/odoo/addons/mymodule directory has write permission? /home/odoo/src/odoo/addons/mymodule 目录是否有写权限?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.