Skip to Content
Menu
This question has been flagged
4 Replies
5031 Views

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
Discard

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

Best Answer

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
Discard
Best Answer

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
Discard
Best Answer

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
Discard
Best Answer

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
Discard
Related Posts Replies Views Activity
1
Nov 24
18017
1
Sep 23
1203
3
May 23
4088
7
Apr 23
47087
1
Dec 22
6433