Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
4 Відповіді
5837 Переглядів

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. 

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
лист. 24
20249
1
вер. 23
3067
3
трав. 23
5671
7
квіт. 23
49048
1
груд. 22
7893