在 OpenERP 中保存机会时发出警告

发布于 2024-12-11 13:51:40 字数 693 浏览 0 评论 0原文

创建机会后,当我单击“保存”时,它会向某些用户发出以下警告:

“访问规则禁止的操作,或对已删除的文档执行的操作(操作:读取,文档类型:用户修改)。”

是什么导致了这个问题?

更新:我创建了一个管理员类型的新用户,并添加了以下组: 销售/用户、销售/用户所有潜在客户、调查/用户、工具/用户。它在给我警告的同时创造了机会。

我将以下组添加到新用户中,并且工作正常:员工、合作伙伴经理、营销/用户、会计/会计师、会计/发票、会计/经理、管理/访问权限、人力资源/经理、人力资源/用户、知识/用户、营销/经理、项目/经理、销售/经理、工具/经理、trimax/AdminMeeting、Trimax/‌ SalesExecutive、Trimax/Vertical、Trimax/SalesHead、 Trimax/SalesManager、可用性/分析会计、可用性/扩展、视图、可用性/多家公司、可用性/无人、可用性/产品 Uos 视图、可用性/产品变体、仓库/经理、仓库/用户、工具/用户、管理/配置

但是在已经创建的用户中,如果我删除上述发出警告的组,那么它也会显示相同的警告。

我上面提到的解决方案是针对新用户的,但对于一些现有用户来说仍然存在问题。因此,我删除了一些不需要的组,这些用户不需要这些组,并且它有效,现在它不显示警告。该警告是由于某些访问权限重叠还是其他原因造成的?

After creating an opportunity, when I click on save, it gives me this warning for some users:

"Operation prohibited by access rules, or performed on an already deleted document (Operation: read, Document type: User Modification)."

What's causing this problem?

Update: I have created a new user of admin type and I added these groups:
Sales/User,Sales/User All Leads,Survey/User,Tools/User. It gives me a warning while creating an opportunity.

I added the following groups to the new user and it's working fine: Employee, PartnerManager, Marketing/User, Accounting/Accountant, Accounting/Invoice, Accounting/Manager, Administration/Access Rights, Human Resource/Manager, Human Resource/User, Knowledge/User, Marketing/Manager, Project/Manager, Sales/Manager, Tools/Manager, trimax/AdminMeeting, Trimax/‌​SalesExecutive, Trimax/Vertical, Trimax/SalesHead, Trimax/SalesManager, Useability/An‌alyticAccounting, Useability/Extended, View, Useability/MultiCompanies, Useability/No One, Useability/Product Uos View, Useability/Product Variant, Warehouse/Manager, Warehouse/User, Tools/User, Administration/Configuration

But in already created user if I remove the above groups which give warning ,then also it shows same warning.

The solution I mentioned above was for new users,but for some existing users it was still giving problem. So I removed some unwanted groups, which I didn't needed for those users and it worked, now it does not show warning. Was the warning due to some access right overlap or something else?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

半边脸i 2024-12-18 13:51:40

这些用户可能没有机会对象或​​某些子对象的访问权限。有关更多详细信息,请阅读访问权限文档

更新:您说您在配置新用户时遇到问题。作为实验,尝试向现有用户添加权限,而不是启动一个全新的用户。另外,检查您是否配置了角色和权限,这有时会让我感到困惑。

另一更新:您说删除某些组会停止警告。您可能已从对象中删除了所有访问规则。如果没有组被明确授予对 OpenERP 中某些内容的访问权限,那么每个人都将被授予访问权限。如果您确实想弄清楚发生了什么,我建议您阅读我上面链接的文档。您还可以在源代码中搜索错误消息并准确查看其抱怨的内容。我发现在调试模式下运行 OpenERP 服务器确实很有帮助,当我试图理解一些像这样的奇怪行为时,可以单步执行代码。您还可以通过添加和删除组来尝试找出究竟是哪个更改触发了此错误,直到找到导致问题发生的单个更改。

Those users probably don't have access rights for the opportunity object, or some child object. Read the access rights documentation for more details.

Update: You said that you're having trouble configuring a new user. As an experiment, try adding permissions to an existing user instead of starting a brand new user. Also, check that you've configured the roles as well as the permissions, that trips me up sometimes.

Another Update: You said that removing some groups stopped the warning. It may be that you have removed all access rules from the object. If no groups are explicitly granted access to something in OpenERP, then everyone is granted access. If you really want to figure out what's going on, I suggest you read the documentation I linked to above. You can also search for the error message in the source code and see exactly what it is complaining about. I find it really helpful to run the OpenERP server in debug mode, and step through the code when I'm trying to understand some weird behaviour like this. You can also try and figure out exactly which change triggers this error by adding and removing groups until you find a single change that makes the problem happen.

沉默的熊 2024-12-18 13:51:40

您好,这是由于访问权限问题造成的。因此,您向您的用户授予正确的访问权限(用于创造机会)

Hi these is due to the access right problem .So you give the proper access right to your user(for creating the oppurtunity)

傾旎 2024-12-18 13:51:40

这里同样的问题。我使用的是多公司,我向用户提供所有权限

same problem here.I'm using Multi-company, I provid all permistion to the user

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文