Ir al contenido
Menú
Se marcó esta pregunta
4 Respuestas
5798 Vistas

Odoo Warning - Access ErrorSorry, you are not allowed to access this document. Please contact your system administrator if you think this is an error.

(Document model: market.process)OK

Avatar
Descartar

How to use ACL in odoo.

The most significant area in Odoo/OpenERP is how to deal or manage users. Managing users and assigning groups or role is the key point in every business. In Odoo/OpenERP assigning role or group to the single user is made through Administrator. And its not a good practice to do so using login through admin and do some setting stuff like assigning groups to employee or users.

http://learnopenerp.blogspot.com/2018/01/groups-and-access-rights-in-odoo.html

Mejor respuesta

You have to give access right for this model 'market.process' for the logged in user group
for eg:

id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink

access_to_market_process,access.to.market.process,module_name.model_market_proces,user_group,1,1,1,1

Avatar
Descartar
Mejor respuesta

You have to provide rights for this object

like this example

<record id="id" model="ir.model.access">

<field name="name">name of objr</field>

<field name="model_id" ref="module_model_name"/>

<field name="perm_read" eval="1"/>

<field name="perm_create" eval="1"/>

<field name="perm_write" eval="1"/>

<field name="perm_unlink" eval="1"/>

</record>


Avatar
Descartar
Mejor respuesta

Yeah, you just simply need to provide the security rules for your model. Any above answers should work fine. 

P.S. Just trying to earn some karma, so I can ask my own question. Please, upvote 1 time <3 

Avatar
Descartar
Mejor respuesta

Dear Aboorva,

It's Simply Access Control List  Error, For logged in user group there's no Access to read "market.process" model, 

Temporary Solution is login as admin and open application with developer mode Goto : Settings -> Security -> Access Control List -> Create , choose model as "market.process" and choose user group, provide ACL for read. then login as same usergroup you have choosen. 

Permanent Solution is Open ir.access.csv from your module security folder provide ACL as per shown below,

id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink

access_to_market_process,access.to.market.process,module_name.model_market_proces,user_group,1,1,1,01

If you already gave ACL for that User Group then Check Record Rules for "market.process" model.


Thank you. 

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
nov 24
20137
1
sept 23
3001
3
may 23
5602
7
abr 23
48945
1
dic 22
7821