[ADD] base_tools: base module for all tools to create and add web icons only once for the Tools application

Make various tools modules depend on base_tools

bzr revid: xmo@openerp.com-20101126125002-uhbwkt2yf6sydf09
This commit is contained in:
Xavier Morel 2010-11-26 13:50:02 +01:00
parent bc2e6ce74c
commit 499c83ae68
14 changed files with 47 additions and 17 deletions

15
addons/base_tools/LICENSE Normal file
View File

@ -0,0 +1,15 @@
OpenERP, Open Source Management Solution
Copyright © 2010 OpenERP SA (<http://openerp.com>).
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public Lice
along with this program. If not, see <http://www.gnu.org/licenses/>.

View File

View File

@ -0,0 +1,15 @@
# -*- encoding: utf-8 -*-
{
"name": "Common base for tools modules",
"author": "OpenERP SA",
"version": "1.0",
"depends": ["base"],
"category" : "Tools",
'description': """
""",
"init_xml": [],
"update_xml": [
'tools_view.xml'
],
"installable": True,
}

View File

@ -0,0 +1,9 @@
<?xml version="1.0"?>
<openerp>
<data>
<menuitem icon="STOCK_PREFERENCES" id="base.menu_tools"
name="Tools" sequence="28"
web_icon="images/tools.png"
web_icon_hover="images/tools-hover.png"/>
</data>
</openerp>

View File

@ -26,7 +26,7 @@
"author" : "Openlabs", "author" : "Openlabs",
"website" : "http://openerp.com", "website" : "http://openerp.com",
"category" : "Added functionality", "category" : "Added functionality",
"depends" : ['marketing'], "depends" : ['marketing', 'base_tools'],
"description": """ "description": """
Email Template is extraction of Power Email basically just to send the emails. Email Template is extraction of Power Email basically just to send the emails.
""", """,

View File

@ -107,10 +107,6 @@
<menuitem name="Email Accounts" id="menu_email_template_account_all" parent="menu_email_template_configuration" action="action_email_template_account_tree_all"/> <menuitem name="Email Accounts" id="menu_email_template_account_all" parent="menu_email_template_configuration" action="action_email_template_account_tree_all"/>
<!-- Email Template account menu in Tools -->
<menuitem name="Tools" id="base.menu_tools" icon="STOCK_PREFERENCES" sequence="28"/>
<menuitem name="Configuration" parent="base.menu_tools" <menuitem name="Configuration" parent="base.menu_tools"
id="base.menu_lunch_survey_root" sequence="20" /> id="base.menu_lunch_survey_root" sequence="20" />

View File

@ -33,7 +33,7 @@
Once installed, check the menu 'Ideas' in the 'Tools' main menu.""", Once installed, check the menu 'Ideas' in the 'Tools' main menu.""",
'author': 'OpenERP SA', 'author': 'OpenERP SA',
'website': 'http://openerp.com', 'website': 'http://openerp.com',
'depends': ['base'], 'depends': ['base_tools'],
'init_xml': [], 'init_xml': [],
'update_xml': [ 'update_xml': [
'security/idea_security.xml', 'security/idea_security.xml',

View File

@ -21,7 +21,6 @@
</record> </record>
<!-- Idea Category Form View --> <!-- Idea Category Form View -->
<menuitem name="Tools" id="base.menu_tools" icon="STOCK_PREFERENCES" sequence="28"/>
<record model="ir.ui.view" id="view_idea_category_form"> <record model="ir.ui.view" id="view_idea_category_form">
<field name="name">idea.category.form</field> <field name="name">idea.category.form</field>
<field name="model">idea.category</field> <field name="model">idea.category</field>

View File

@ -29,8 +29,8 @@
""", """,
"version": "0.1", "version": "0.1",
"depends": ["base"], "depends": ["base_tools"],
"category" : "Generic Modules/Others", "category" : "Tools",
'description': """ 'description': """
The base module to manage lunch The base module to manage lunch
@ -53,4 +53,4 @@
"installable": True, "installable": True,
} }
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -1,7 +1,6 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<openerp> <openerp>
<data> <data>
<menuitem icon="STOCK_PREFERENCES" id="base.menu_tools" name="Tools" sequence="28"/>
<menuitem name="Lunch Order" parent="base.menu_tools" <menuitem name="Lunch Order" parent="base.menu_tools"
id="menu_lunch" sequence="1" /> id="menu_lunch" sequence="1" />

View File

@ -23,10 +23,10 @@
{ {
'name': 'Subscription and recurring operations', 'name': 'Subscription and recurring operations',
'version': '1.0', 'version': '1.0',
'category': 'Generic Modules/Others', 'category': 'Tools',
'description': """Module allows to create new documents and add subscription on that document.""", 'description': """Module allows to create new documents and add subscription on that document.""",
'author': 'OpenERP SA', 'author': 'OpenERP SA',
'depends': ['base'], 'depends': ['base_tools'],
'init_xml': [], 'init_xml': [],
'update_xml': ['security/subcription_security.xml', 'security/ir.model.access.csv', 'subscription_view.xml'], 'update_xml': ['security/subcription_security.xml', 'security/ir.model.access.csv', 'subscription_view.xml'],
'demo_xml': ['subscription_demo.xml',], 'demo_xml': ['subscription_demo.xml',],

View File

@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<openerp> <openerp>
<data> <data>
<menuitem icon="STOCK_PREFERENCES" id="base.menu_tools" name="Tools" sequence="28"/>
<menuitem id="next_id_45" name="Recurring Events" parent="base.menu_tools" sequence="4"/> <menuitem id="next_id_45" name="Recurring Events" parent="base.menu_tools" sequence="4"/>
<!-- <!--

View File

@ -31,7 +31,7 @@
Partners are also sent mails with user name and password for the invitation of the survey Partners are also sent mails with user name and password for the invitation of the survey
""", """,
'author': 'OpenERP SA', 'author': 'OpenERP SA',
'depends': ['base'], 'depends': ['base_tools'],
'update_xml': ['survey_report.xml', 'update_xml': ['survey_report.xml',
'survey_data.xml', 'survey_data.xml',
'wizard/survey_selection.xml', 'wizard/survey_selection.xml',

View File

@ -1,8 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<openerp> <openerp>
<data> <data>
<menuitem icon="STOCK_PREFERENCES" id="base.menu_tools" name="Tools" sequence="28"/>
<menuitem name="Surveys" id="menu_surveys" parent="base.menu_tools" sequence="2" groups="base.group_tool_user,base.group_tool_manager,group_survey_user"/> <menuitem name="Surveys" id="menu_surveys" parent="base.menu_tools" sequence="2" groups="base.group_tool_user,base.group_tool_manager,group_survey_user"/>
<menuitem name="Define Surveys" id="menu_define_survey" <menuitem name="Define Surveys" id="menu_define_survey"
groups="base.group_tool_manager" groups="base.group_tool_manager"