تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
11792 أدوات العرض

 

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!