Warning while saving opportunity in OpenERP

淺唱寂寞╮ 提交于 2019-12-04 05:31:44

问题


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?


回答1:


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.




回答2:


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




回答3:


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



来源:https://stackoverflow.com/questions/7874752/warning-while-saving-opportunity-in-openerp

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!