Ravi Singh
Ravi Singh

Reputation: 315

How to give access right to a user Group?

While providing access right to a user group it displaying a error:

"Exception: Module loading registration_form failed: file 
 registration_form/security/ir.model.access.csv could not be processed:
 No matching record found for external id 'model_registration_management' 
 in field 'Object' No matching record found for external id 
 'registration.group_management_user' in field 'Group'
 Missing required value for the field 'Object' (model_id) - - -
 Missing required value for the field 'Object' ("

This is the security.xml file in security folder

<record model="ir.module.category" 
id="module_category_management">
<field name="name">Management</field>
<field name="sequence">3</field>
</record>

<record id="group_management_user" model="res.groups">
<field name="name">user</field>
<field name="implied_ids" eval="[(4, ref('base.group_user'))]" />
<field name="category_id" ref="module_category_management"/>
</record>

Code for access rights in csv file

access_registration_management,registration.management,
model_registration_management,
registration.group_management_user,1,1,1,1

I need it to be create a user group for me but it is showing me error.

Upvotes: 1

Views: 124

Answers (1)

Thayif kabir
Thayif kabir

Reputation: 726

This error usually occurs when there is no model model_registration_management in your module. Please make sure that you define model correctly in your module and in xml file. there is similar question you can refer this link

Upvotes: 2

Related Questions