Odoo 15用户表单显示组列表而不是组设置。

huangapple go评论62阅读模式
英文:

Odoo 15 User form showing list of groups instead of group settings

问题

在我的开发环境中,用户表单正常显示组设置,但在生产环境中,却显示了所有用户的组列表。

生产环境(错误):
Odoo 15用户表单显示组列表而不是组设置。

开发环境:
Odoo 15用户表单显示组列表而不是组设置。

为什么会发生这种情况有任何想法吗?

我已将生产数据库还原到本地环境,表单正常呈现。

英文:

I'm using Odoo 15 and in my development environment the user form is showing group settings as usual, but in production a list with all the user's groups is shown instead.

Production (Wrong):
Odoo 15用户表单显示组列表而不是组设置。

Development:
Odoo 15用户表单显示组列表而不是组设置。

Any ideas on why this is happening?

I've restored the production database into my local environment, and the form is rendered as usual.

答案1

得分: 0

显然,群组设置由 res.users 中的 _update_user_groups_view 方法渲染。当上下文指示安装/更新/卸载正在运行时,groups_id 会呈现为一个列表。可能是由于更新过程中的错误,上下文仍然指示更新正在进行。在更新系统后,问题得以解决。

英文:

Apparently, the group settings are rendered by a method called _update_user_groups_view in res.users. When the context indicates that an install/update/uninstall is running, groups_id is rendered as a list.
Probably due to an error while updating, the context was indicating that an update was still running. After updating the system, the problem was solved.

huangapple
  • 本文由 发表于 2023年6月27日 20:44:05
  • 转载请务必保留本文链接:https://go.coder-hub.com/76564992.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定