[ADD] hide_contacts: add group to contacts root menu and remove the rest

This commit is contained in:
Samir Ladoui 2025-01-20 09:45:28 +01:00
parent 5e094feff2
commit 3438a74547
3 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,13 @@
{
'name': 'Hide Contacts',
'version': '14.0',
'author': 'Experts Co.',
'license': 'LGPL-3',
'depends': [
'contacts'
],
'data': [
'security/security.xml',
'views/contact_views.xml'
]
}

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="group_show_contact_module" model="res.groups">
<field name="name">Show Contacts</field>
<field name="category_id" ref="base.module_category_hidden"/>
</record>
</odoo>

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="contacts.menu_contacts" model="ir.ui.menu">
<field name="groups_id" eval="[(6, 0, [ref('hide_contacts.group_show_contact_module')])]"/>
</record>
</odoo>