コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
11784 ビュー

 

I created a new module and this module lets you to edit record in the "res.partners" table/object. 

I created a new user and give it the right to access "portal"

when i logged in as the new user and itry to click a button that lets you to edit record in the "res.partners" then it throws an error.

Access Denied

The requested operation cannot be completed due to security restrictions. Please contact your system administrator.

(Document type: Partner, Operation: write)             

anyone encountered and solved this ?

 

 

 

 

 

アバター
破棄
最善の回答

For portal user, the access rights provided for res.partner table is 
Read - False
Create - False
Write - False
Delete - False

If need access to write, create and read.  Please enable "Contact Creation" group for that particular user.

アバター
破棄
著作者

still getting the same error, i already enabled the Contact Creation for the particular user.

最善の回答

Check Record Rules, especially Portal Personal Contacts and res_partner: read access on my partner

アバター
破棄
著作者

when using administrator account, i go to settings >>Technical >> security >> record rules i already given full access rights (R,W,C,D) to the Portal Personal Contacts with the ff domain filter of ([('message_follower_ids','in',[user.partner_id.id])] and the same with the res_partner res_partner: portal/public: read access on my commercial partner with domain filter of ([('id', 'child_of', user.commercial_partner_id.id)])

著作者

but still the same error, i actually try to give all access control list to my new account but same as the administrator, but still error.

Try deactivating them.

著作者

@ Mariusz Mizgier , deactivate the given access rights same as the admin? already did that and same error still.....

著作者

is this a bug? what do you think?

I would first try to look in the log for information, why this access denied error occured - you should have it stated if it is related to record rules or access record list - get this error, look up in the log and if you can't trace it, post the output here.

著作者

[Solved] I just uninstall the module and install it again. Whheeeewww.. btw thanks Mariusz!