From 598f401d671fcf184c6415b2ae10a255a00d8b8f Mon Sep 17 00:00:00 2001 From: Ravi Patel Date: Mon, 6 Jun 2016 10:57:41 +0530 Subject: [PATCH] [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 --- addons/contacts/__init__.py | 2 ++ addons/contacts/__openerp__.py | 18 ++++++++++++ .../static/description/icon.png} | Bin .../views/contact_views.xml | 26 +++++++----------- addons/mail/__openerp__.py | 1 - 5 files changed, 30 insertions(+), 17 deletions(-) create mode 100644 addons/contacts/__init__.py create mode 100644 addons/contacts/__openerp__.py rename addons/{mail/static/description/icon2.png => contacts/static/description/icon.png} (100%) rename addons/{mail => contacts}/views/contact_views.xml (79%) diff --git a/addons/contacts/__init__.py b/addons/contacts/__init__.py new file mode 100644 index 00000000000..67dee8c60db --- /dev/null +++ b/addons/contacts/__init__.py @@ -0,0 +1,2 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. diff --git a/addons/contacts/__openerp__.py b/addons/contacts/__openerp__.py new file mode 100644 index 00000000000..7c5270a7012 --- /dev/null +++ b/addons/contacts/__openerp__.py @@ -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, +} diff --git a/addons/mail/static/description/icon2.png b/addons/contacts/static/description/icon.png similarity index 100% rename from addons/mail/static/description/icon2.png rename to addons/contacts/static/description/icon.png diff --git a/addons/mail/views/contact_views.xml b/addons/contacts/views/contact_views.xml similarity index 79% rename from addons/mail/views/contact_views.xml rename to addons/contacts/views/contact_views.xml index 4dd40e0ef73..97f11f8ac4a 100644 --- a/addons/mail/views/contact_views.xml +++ b/addons/contacts/views/contact_views.xml @@ -1,10 +1,7 @@ - - - - - + + - Contacts + Contacts ir.actions.act_window res.partner form @@ -12,40 +9,37 @@

- Click to add a contact in your address book. + Click to add a contact in your contacts directory.

- 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.

- + kanban - + tree - + form - - -
-
+ diff --git a/addons/mail/__openerp__.py b/addons/mail/__openerp__.py index ea32babb318..a9fead1585b 100644 --- a/addons/mail/__openerp__.py +++ b/addons/mail/__openerp__.py @@ -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',