Odoo 11.0模块:缺少依赖项:(2)["web.form_relational","web.form_common"] [英] Odoo 11.0 modules: Missing dependencies: (2) ["web.form_relational", "web.form_common"]

查看:201
本文介绍了Odoo 11.0模块:缺少依赖项:(2)["web.form_relational","web.form_common"]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为我的实例使用 project_team 模块, m在浏览器控制台中收到此警告:Non loaded modules: ["project_team.form_rel"].

I'm using the project_team module for my instance, and I'm getting this warning in the browser console: Non loaded modules: ["project_team.form_rel"].

在模块中深入搜索,我发现此问题的起因是:Missing dependencies: (2) ["web.form_relational", "web.form_common"]

Searching deep in the module i found that the origin of this problem in this: Missing dependencies: (2) ["web.form_relational", "web.form_common"]

我可以看到这些模块存在于odoo

I could see that those modules are present in odoo 10.0 and it's not in 11.0.

我认为它需要更新,但是我找不到有关如何在新的odoo版本中替换这两个旧模块的任何信息.

I think it requires an update, but i cannot find any information about how can we replace this two old modules in the new odoo version.

有人可以帮助我吗?

非常感谢您.

推荐答案

这是一个可悲的答案,但是恕我直言,这是正确的答案:如果模块需要修复,则必须对其进行修复.

It's a sad answer, but IMHO it's the right one: if the module needs fixing, you have to fix it.

从Odoo 10到11,几乎所有的JS都经过了重构,因此许多JS附加组件在迁移它们时都不是开箱即用的.您必须仔细研究代码以搜索所需的功能,然后修补该附件.开始搜索的好地方是 addons/web/static/src/js 文件夹. JS参考可能也对您有帮助.

From Odoo 10 to 11, almost all the JS was refactored, so many JS add-ons don't work out of the box when migrating them. You have to dig through the code to search where are those features you need, and patch the add-on. A good place to start searching is the addons/web/static/src/js folder. The JS reference might help you too.

另一有帮助的事情是使用资产在开发模式下运行Odoo(将?debug=assets附加到URL),这也应该在控制台中登录未加载给定JS模块的原因,并加载未压缩的源以便更轻松地进行调试.

Another thing that should help is running Odoo in development mode with assets (append ?debug=assets to the URL), which should also log in the console the reasons a given JS module hasn't been loaded, and loads the unminified sources to allow easier debugging.

最后,如果您可以提供良好的日志和良好的可复制案例,则有机会在相应的github项目中发布问题,维护者会为您提供帮助.

Finally, if you can provide good logs and a good reproducible case, there are chances that if you publish an issue in the corresponding github project, maintainers help you.

希望它能对您有所帮助.

I hope it helped you.

这篇关于Odoo 11.0模块:缺少依赖项:(2)["web.form_relational","web.form_common"]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆