Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
11780 Vistas

 

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
Descartar
Mejor respuesta

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
Descartar
Autor

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

Mejor respuesta

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

Avatar
Descartar
Autor

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

Autor

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.

Autor

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

Autor

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.

Autor

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