英文:
Odoo 15 User form showing list of groups instead of group settings
问题
在我的开发环境中,用户表单正常显示组设置,但在生产环境中,却显示了所有用户的组列表。
为什么会发生这种情况有任何想法吗?
我已将生产数据库还原到本地环境,表单正常呈现。
英文:
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.
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论