From 5d0413fb09ca1a00d7b7331afb147a26622b5479 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Mon, 11 Jan 2010 14:30:27 +0100 Subject: [PATCH] [add] project: installer bzr revid: xmo@tinyerp.com-20100111133027-b20lg7r8on6mpfy9 --- addons/project/__init__.py | 6 +-- addons/project/__terp__.py | 16 +++---- addons/project/installer.py | 40 ++++++++++++++++ addons/project/project_installer.xml | 69 ++++++++++++++++++++++++++++ 4 files changed, 120 insertions(+), 11 deletions(-) create mode 100644 addons/project/installer.py create mode 100644 addons/project/project_installer.xml diff --git a/addons/project/__init__.py b/addons/project/__init__.py index 9fc558dcfde..31f27740b32 100644 --- a/addons/project/__init__.py +++ b/addons/project/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- ############################################################################## -# +# # OpenERP, Open Source Management Solution # Copyright (C) 2004-2009 Tiny SPRL (). # @@ -15,16 +15,16 @@ # 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 . +# along with this program. If not, see . # ############################################################################## import project import company +import installer import project_mailgate import report import wizard # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: - diff --git a/addons/project/__terp__.py b/addons/project/__terp__.py index 821a3aa7287..e464bbf8876 100644 --- a/addons/project/__terp__.py +++ b/addons/project/__terp__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- ############################################################################## -# +# # OpenERP, Open Source Management Solution # Copyright (C) 2004-2009 Tiny SPRL (). # @@ -15,7 +15,7 @@ # 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 . +# along with this program. If not, see . # ############################################################################## @@ -31,15 +31,15 @@ works done on tasks, eso. It is able to render planning, order tasks, eso. """, "init_xml" : [], - "demo_xml" : ["project_demo.xml"], "update_xml": [ "security/project_security.xml", "security/ir.model.access.csv", - "project_data.xml", - "project_wizard.xml", - "project_view.xml", - "project_report.xml", - "process/task_process.xml" + "project_data.xml", + "project_wizard.xml", + "project_view.xml", + "project_report.xml", + "process/task_process.xml", + "project_installer.xml", ], 'demo_xml': ['project_demo.xml'], 'installable': True, diff --git a/addons/project/installer.py b/addons/project/installer.py new file mode 100644 index 00000000000..d6a56bd453c --- /dev/null +++ b/addons/project/installer.py @@ -0,0 +1,40 @@ +# -*- 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 project_installer(osv.osv_memory): + _name = 'project.installer' + _inherit = 'res.config.installer' + + _columns = { + # Project Management + 'project_long_term':fields.boolean('Long Term Planning'), + 'project_wiki':fields.boolean('Specifications in a Wiki'), + 'hr_timesheet_sheet':fields.boolean('Timesheets'), + 'hr_timesheet_invoice':fields.boolean('Invoice Based on Hours'), + 'account_budget':fields.boolean('Budgets'), + 'project_messages':fields.boolean('Project Messages'), + 'project_crm':fields.boolean('Issues Tracker & Features Requests'), + # Methodologies + 'scrum':fields.boolean('SCRUM'), + 'project_gtd':fields.boolean('Getting Things Done'), + } +project_installer() diff --git a/addons/project/project_installer.xml b/addons/project/project_installer.xml new file mode 100644 index 00000000000..4d8b40103c1 --- /dev/null +++ b/addons/project/project_installer.xml @@ -0,0 +1,69 @@ + + + + project.installer.view + project.installer + form + + + +
+ Project Modules Installation +
+ + + + + + + + + + Install Modules + +
+
+
+ + + Project Modules Installation + ir.actions.act_window + project.installer + + form + form + new + + + + + 1 + +
+