[ADD] added new configuration for project

bzr revid: tpa@tinyerp.com-20120305124025-mwfht28zzivcl6bz
This commit is contained in:
Turkesh Patel (Open ERP) 2012-03-05 18:10:25 +05:30
parent 2f2e447573
commit fa8413a04a
4 changed files with 130 additions and 1 deletions

View File

@ -24,5 +24,6 @@ import company
import report
import wizard
import res_partner
import res_config
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -57,7 +57,8 @@ Dashboard for project members that includes:
"report/project_report_view.xml",
"board_project_view.xml",
'board_project_manager_view.xml',
'report/project_cumulative.xml'
'report/project_cumulative.xml',
'res_config_view.xml',
],
'demo_xml': [
'project_demo.xml',

View File

@ -0,0 +1,64 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 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
import pooler
from tools.translate import _
class project_configuration(osv.osv_memory):
_inherit = 'res.config.settings'
_columns = {
'module_project_mrp': fields.boolean('Allow to create tasks directly from a sale order',
help ="""
Automatically creates project tasks from procurement lines.
It installs the project_mrp module.
"""),
'module_pad': fields.boolean("Write project specification on collaborative note pad",
help="""Lets the company customize which Pad installation should be used to link to new pads
(by default, http://ietherpad.com/).
It installs the pad module."""),
'module_project_timesheet': fields.boolean("Invoice working time on task",
help="""This allows you to transfer the entries under tasks defined for Project Management to
the Timesheet line entries for particular date and particular user with the effect of creating, editing and deleting either ways.
It installs the project_timesheet module."""),
'module_project_scrum': fields.boolean("Allow to manage your project on Agile methodology",
help="""This allows to implement all concepts defined by the scrum project management methodology for IT companies.
* Project with sprints, product owner, scrum master
* Sprints with reviews, daily meetings, feedbacks
* Product backlog
* Sprint backlog
It installs the project_scrum module."""),
'module_project_planning' : fields.boolean("Manage planning",
help="""This module helps you to manage your plannings.
each department manager can know if someone in his team has still unallocated time for a given planning (taking in consideration the validated leaves) or if he still needs to encode tasks.
It Installs project_planning module."""),
'module_project_long_term': fields.boolean("Manage Long term planning",
help="""Long Term Project management module that tracks planning, scheduling, resources allocation.
It installs the project_long_term module."""),
'module_project_issue_sheet': fields.boolean("Track and invoice working time",
help="""Allows to the Timesheet support for the Issues/Bugs Management in Project.
It installs the project_issue_sheet module."""),
}
project_configuration()
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -0,0 +1,63 @@
<openerp>
<data>
<record id="view_project_config" model="ir.ui.view">
<field name="name">Project Application</field>
<field name="model">res.config.settings</field>
<field name="type">form</field>
<field name="inherit_id" ref="base.view_res_config_settings"/>
<field name="arch" type="xml">
<form position ="replace">
<form string ="Project Application">
<separator string="Project" colspan="4"/>
<group colspan="4" col="8">
<group colspan="4" col="4">
<field name="module_project_mrp"/>
<newline/>
<field name="module_pad"/>
<newline/>
</group>
<group colspan="4" col="4">
<newline/>
<field name="module_project_timesheet"/>
<newline/>
<field name="module_project_scrum"/>
<newline/>
</group>
</group>
<separator string="Planning" colspan="4"/>
<group colspan="4" col="4">
<group colspan="4" col="4">
<field name="module_project_planning"/>
</group>
<group colspan="4" col="4">
<field name="module_project_long_term"/>
</group>
</group>
<separator string="Helpdesk and support" colspan="4"/>
<group colspan="4" col="4">
<newline/>
<field name="module_project_issue_sheet"/>
<newline/>
</group>
</form>
</form>
</field>
</record>
<record id="action_project_configuration" model="ir.actions.act_window">
<field name="name">Configure Project Application</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">res.config.settings</field>
<field name="view_id" ref="view_project_config"/>
<field name="view_type">form</field>
<field name="view_mode">form</field>
</record>
<menuitem id="base.menu_project_config" name="Project" parent="base.menu_config" sequence="1" action="project.action_project_configuration"/>
</data>
</openerp>