[ADD] contacts: Move 'Contacts' root menuitem from 'mail' to a new module
Purpose: There are too many apps when someone starts to use odoo. The user installs an app and see at least 6 menus -> too much ! Specification: In mail module move contacts menu into new module 'contacts' to avoid this useless app for new users but that can be useful afterward
This commit is contained in:
committed by
Yannick Tivisse
parent
9e57185449
commit
598f401d67
@@ -0,0 +1,2 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
@@ -0,0 +1,18 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
|
||||
{
|
||||
'name': 'Contacts Directory',
|
||||
'category': 'Tools',
|
||||
'summary': 'Customers, Vendors, Partners,...',
|
||||
'description': """
|
||||
This module gives you a quick view of your contacts directory, accessible from your home page.
|
||||
You can track your vendors, customers and other contacts.
|
||||
""",
|
||||
'depends': ['base'],
|
||||
'data': [
|
||||
'views/contact_views.xml',
|
||||
],
|
||||
'application': True,
|
||||
}
|
||||
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
@@ -1,10 +1,7 @@
|
||||
<?xml version="1.0" ?>
|
||||
<openerp>
|
||||
<data>
|
||||
|
||||
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<record id="action_contacts" model="ir.actions.act_window">
|
||||
<field name="name">Contacts</field>
|
||||
<field name="name">Contacts</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">res.partner</field>
|
||||
<field name="view_type">form</field>
|
||||
@@ -12,40 +9,37 @@
|
||||
<field name="search_view_id" ref="base.view_res_partner_filter"/>
|
||||
<field name="help" type="html">
|
||||
<p class="oe_view_nocontent_create">
|
||||
Click to add a contact in your address book.
|
||||
Click to add a contact in your contacts directory.
|
||||
</p><p>
|
||||
Odoo helps you easily track all activities related to
|
||||
Odoo helps you easily track all activities related to
|
||||
a customer: discussions, history of business opportunities,
|
||||
documents, etc.
|
||||
</p>
|
||||
</field>
|
||||
</record>
|
||||
<record id="action_contacts_view_kanban" model="ir.actions.act_window.view">
|
||||
<field eval="0" name="sequence"/>
|
||||
<field name="sequence" eval="0"/>
|
||||
<field name="view_mode">kanban</field>
|
||||
<field name="view_id" ref="base.res_partner_kanban_view"/>
|
||||
<field name="act_window_id" ref="action_contacts"/>
|
||||
</record>
|
||||
<record id="action_contacts_view_tree" model="ir.actions.act_window.view">
|
||||
<field name="sequence" eval="1"/>
|
||||
<field name="sequence" eval="1"/>
|
||||
<field name="view_mode">tree</field>
|
||||
<field name="view_id" ref="base.view_partner_tree"/>
|
||||
<field name="act_window_id" ref="action_contacts"/>
|
||||
</record>
|
||||
<record id="action_contacts_view_form" model="ir.actions.act_window.view">
|
||||
<field eval="2" name="sequence"/>
|
||||
<field name="sequence" eval="2"/>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="view_id" ref="base.view_partner_form"/>
|
||||
<field name="act_window_id" ref="action_contacts"/>
|
||||
</record>
|
||||
|
||||
|
||||
<menuitem name="Contacts"
|
||||
id="menu_contacts"
|
||||
sequence="4"
|
||||
action="action_contacts"
|
||||
web_icon="mail,static/description/icon2.png"
|
||||
web_icon="contacts,static/description/icon.png"
|
||||
groups="base.group_user,base.group_partner_manager"/>
|
||||
|
||||
</data>
|
||||
</openerp>
|
||||
</odoo>
|
||||
@@ -49,7 +49,6 @@ Main Features
|
||||
'views/mail_template_views.xml',
|
||||
'views/ir_actions_views.xml',
|
||||
'views/res_partner_views.xml',
|
||||
'views/contact_views.xml',
|
||||
],
|
||||
'demo': [
|
||||
'data/mail_demo.xml',
|
||||
|
||||
Reference in New Issue
Block a user