上传自定义Odoo模块报错:仓库中未找到模块
Odoo自定义模块上传报错解决方法
报错信息
No module found in repository ssh://git@github.com/ezert/planteagua-custom-fonts.git#16.0.
Each module needs to be in a separate folder at the root of the repository, even if there is only one module.
If you have all the files of your module at the root of your repository, you need to create a new folder with the name of your module and move all the files in it.
问题根源
你的仓库当前将模块的所有核心文件(如__manifest__.py、fonts文件夹等)直接放在仓库根目录,没有按Odoo要求为模块创建独立的根目录文件夹,导致Odoo无法识别仓库中的模块。
解决步骤
- 在仓库根目录创建一个符合Odoo命名规范的模块文件夹(推荐用下划线分隔命名,比如
planteagua_custom_fonts) - 将仓库根目录下所有模块相关文件(配置文件、资源文件夹等)全部移动到这个新文件夹内
- 提交修改并推送到GitHub的16.0分支
- 重新在Odoo中配置该仓库源,尝试安装模块
内容的提问来源于stack exchange,提问作者Ezert Aracksam
相关产品推荐
相关产品推荐

