From cb5de45d90c742808e99fcb8464a73d7ce070b91 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Thu, 7 Jan 2010 17:06:59 +0100 Subject: [PATCH] [add] tools: installer for misc tools bzr revid: xmo@tinyerp.com-20100107160659-j1o35x9j80spg1hb --- addons/tools/__init__.py | 24 +++++++++++++ addons/tools/__terp__.py | 39 ++++++++++++++++++++ addons/tools/installer.py | 39 ++++++++++++++++++++ addons/tools/tools_installer.xml | 62 ++++++++++++++++++++++++++++++++ 4 files changed, 164 insertions(+) create mode 100644 addons/tools/__init__.py create mode 100644 addons/tools/__terp__.py create mode 100644 addons/tools/installer.py create mode 100644 addons/tools/tools_installer.xml diff --git a/addons/tools/__init__.py b/addons/tools/__init__.py new file mode 100644 index 00000000000..3511d091ecb --- /dev/null +++ b/addons/tools/__init__.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2004-2009 Tiny SPRL (). +# +# 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 . +# +############################################################################## + +import installer + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/tools/__terp__.py b/addons/tools/__terp__.py new file mode 100644 index 00000000000..7a3d0304ccf --- /dev/null +++ b/addons/tools/__terp__.py @@ -0,0 +1,39 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2004-2009 Tiny SPRL (). +# +# 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 . +# +############################################################################## + + +{ + "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: diff --git a/addons/tools/installer.py b/addons/tools/installer.py new file mode 100644 index 00000000000..7d7bdb37403 --- /dev/null +++ b/addons/tools/installer.py @@ -0,0 +1,39 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2004-2009 Tiny SPRL (). +# +# 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 . +# +############################################################################## +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() + diff --git a/addons/tools/tools_installer.xml b/addons/tools/tools_installer.xml new file mode 100644 index 00000000000..2c8aceeff6b --- /dev/null +++ b/addons/tools/tools_installer.xml @@ -0,0 +1,62 @@ + + + + tools.installer.view + tools.installer + form + + + +
+ Tools Modules Installation +
+ + + + + + + + + + Install Modules + +
+
+
+ + + Tools Modules Installation + ir.actions.act_window + tools.installer + + form + form + new + + + + + 1 + +
+