[ADD] hide_contacts: add group to contacts root menu and remove the rest
This commit is contained in:
parent
5e094feff2
commit
3438a74547
|
|
@ -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'
|
||||
]
|
||||
}
|
||||
|
|
@ -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>
|
||||
|
|
@ -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>
|
||||
Loading…
Reference in New Issue