跳至內容
選單
此問題已被標幟
4 回覆
5801 瀏覽次數

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

頭像
捨棄

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

最佳答案

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

頭像
捨棄
最佳答案

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>


頭像
捨棄
最佳答案

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 

頭像
捨棄
最佳答案

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. 

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
11月 24
20147
1
9月 23
3003
3
5月 23
5610
7
4月 23
48953
1
12月 22
7832