This question has been flagged

HI All,


I defined my custom module.

In this module I defined a group "X"


<record id="group_custom_x" model="res.groups">
<field name="name">X</field>
<field name="category_id" ref="module_category_x"/>
</record>

<!-- Template Utente Cliente-->

<record id="custom_module_x_user_template" model="res.users">
<field name="name">Template X</field>
<field name="login">X USER</field>
<field name="active" eval="False"/>
<field name="groups_id" eval="[(6, 0, [ref('group_custom_x')])]"/>
</record>


I defined also ir.model.access.csv:

group_custom_x_res_partner,res_partner_group_custom_x,base.model_res_partner,group_custom_x,1,0,0,0

and
<record id="contacts.menu_contacts" model="ir.ui.menu">
<field name="groups_id" eval="[(4,ref('group_dashboard_client'))]"/>
</record>

It doesn't work
my only purpose is to create a user that can access and read "Contacts" menu.
I know that I can do it using "Employee" or "Contact creation" groups but I need to do it "from scratch"
Is there anyone that can help me?
Avatar
Discard