Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
11795 Weergaven

 

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 ?

 

 

 

 

 

Avatar
Annuleer
Beste antwoord

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.

Avatar
Annuleer
Auteur

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

Beste antwoord

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

Avatar
Annuleer
Auteur

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)])

Auteur

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.

Auteur

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

Auteur

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.

Auteur

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