[add] tools: installer for misc tools
bzr revid: xmo@tinyerp.com-20100107160659-j1o35x9j80spg1hb
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
|
||||
#
|
||||
# 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 License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
import installer
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
@@ -0,0 +1,39 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
|
||||
#
|
||||
# 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 License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
|
||||
{
|
||||
"name" : "Miscellaneous Tools",
|
||||
"version" : "1.0",
|
||||
"depends" : ["base"],
|
||||
"author" : "Tiny",
|
||||
"description": """Installer for various interesting tools
|
||||
""",
|
||||
'website': 'http://www.openerp.com',
|
||||
'init_xml': [],
|
||||
'update_xml': [
|
||||
'tools_installer.xml',
|
||||
],
|
||||
'demo_xml': [],
|
||||
'installable': True,
|
||||
'active': False,
|
||||
}
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
@@ -0,0 +1,39 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
|
||||
#
|
||||
# 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 License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
from osv import fields, osv
|
||||
|
||||
class tools_installer(osv.osv_memory):
|
||||
_name = 'tools.installer'
|
||||
_inherit = 'res.config.installer'
|
||||
|
||||
_columns = {
|
||||
# Tools
|
||||
'lunch':fields.boolean('Lunch Orders'),
|
||||
'subscription':fields.boolean('Recurring Documents'),
|
||||
'survey':fields.boolean('Survey'),
|
||||
'audittrail':fields.boolean('Audit Trail'),
|
||||
}
|
||||
_defaults = {
|
||||
'lunch': True,
|
||||
}
|
||||
|
||||
tools_installer()
|
||||
|
||||
@@ -0,0 +1,62 @@
|
||||
<openerp>
|
||||
<data>
|
||||
<record id="view_tools_installer" model="ir.ui.view">
|
||||
<field name="name">tools.installer.view</field>
|
||||
<field name="model">tools.installer</field>
|
||||
<field name="type">form</field>
|
||||
<field name="inherit_id" ref="base.res_config_view_base"/>
|
||||
<field name="arch" type="xml">
|
||||
<data>
|
||||
<form position="attributes"><attribute name="string">
|
||||
Tools Modules Installation
|
||||
</attribute></form>
|
||||
|
||||
<group string="res_config_contents" position="replace">
|
||||
<separator string="Select Tools To Install" colspan="4"/>
|
||||
<image name="gtk-dialog-info"/>
|
||||
<newline/>
|
||||
<label align="0.0" string=" Lorem ipsum dolor
|
||||
sit amet, consectetur adipiscing elit. Cras metus
|
||||
augue, ultricies et vehicula id, fringilla quis
|
||||
mauris. Vestibulum fringilla ipsum sit amet est
|
||||
adipiscing eget euismod velit semper. Proin non mauris
|
||||
velit. Donec malesuada nisi sed augue viverra commodo
|
||||
sagittis nisi rutrum. Cras vitae libero nunc, a
|
||||
molestie sapien. Proin et augue sit amet est egestas
|
||||
fermentum ut eu lacus. Etiam nisi orci, volutpat
|
||||
aliquam viverra interdum, vehicula iaculis
|
||||
lectus. Mauris ligula sapien, auctor in pharetra non,
|
||||
ultrices quis odio."/>
|
||||
<group>
|
||||
<separator string="Tools" colspan="4"/>
|
||||
<field name="lunch"/>
|
||||
<field name="subscription"/>
|
||||
<field name="survey"/>
|
||||
<field name="audittrail"/>
|
||||
</group>
|
||||
</group>
|
||||
|
||||
<xpath expr='//button[@name="action_skip"]' position='replace'/>
|
||||
<xpath expr='//button[@name="action_next"]' position='attributes'>
|
||||
<attribute name='string'>Install Modules</attribute>
|
||||
</xpath>
|
||||
</data>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="action_tools_installer" model="ir.actions.act_window">
|
||||
<field name="name">Tools Modules Installation</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">tools.installer</field>
|
||||
<field name="view_id" ref="view_tools_installer"/>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="target">new</field>
|
||||
</record>
|
||||
|
||||
<record id="tools_installer_todo" model="ir.actions.todo">
|
||||
<field name="action_id" ref="action_tools_installer"/>
|
||||
<field name="sequence">1</field>
|
||||
</record>
|
||||
</data>
|
||||
</openerp>
|
||||
Reference in New Issue
Block a user