Merge pull request #2155 from expsa/samir-aladawi-add-group-to-root-menu-contacts

[ADD] hide_contacts: add group to contacts root menu and remove the rest
This commit is contained in:
SamirLADOUI-sa 2025-01-20 09:46:32 +01:00 committed by GitHub
commit 9b91d3eae7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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>