diff --git a/addons/project_long_term/__terp__.py b/addons/project_long_term/__terp__.py index 8eea3ce61c0..c03e52b2a05 100644 --- a/addons/project_long_term/__terp__.py +++ b/addons/project_long_term/__terp__.py @@ -30,8 +30,7 @@ "description": """Long Term Project management module that track planning, scheduling, resources allocation. """, "init_xml" : [], - "demo_xml" : [#"project_demo.xml" -], + "demo_xml" : ["project_demo.xml"], "update_xml": [ "project_wizard.xml" , "project_view.xml", diff --git a/addons/project_long_term/project.py b/addons/project_long_term/project.py index df21511434f..1ddd15aa8f6 100644 --- a/addons/project_long_term/project.py +++ b/addons/project_long_term/project.py @@ -174,7 +174,8 @@ class project_phase(osv.osv): if phase.responsible_id.id: resource_id = resource_pool.search(cr,uid,[('user_id','=',phase.responsible_id.id)]) - calendar_id = resource_pool.browse(cr,uid,resource_id[0]).calendar_id.id + if resource_id: + calendar_id = resource_pool.browse(cr,uid,resource_id[0]).calendar_id.id default_uom_id = uom_pool.search(cr,uid,[('name','=','Hour')])[0] avg_hours = uom_pool._compute_qty(cr, uid, phase.product_uom.id, phase.duration,default_uom_id) diff --git a/addons/project_long_term/project_demo.xml b/addons/project_long_term/project_demo.xml index e762d3874ba..9f94152141f 100644 --- a/addons/project_long_term/project_demo.xml +++ b/addons/project_long_term/project_demo.xml @@ -1,252 +1,921 @@ - + - - - - - - - - Analysis - - - New Feature - - - Quotation - - - Bug + + + + + + en_US + Demo User1 + + Mr Demo + + + + + + demo1 + demo1 + - - 1 - Open ERP Integration - + + + en_US + Manager1 + + + + + + + manager1 + manager1 + - - 1 - 10 - - Study + Prototype - - - - - 20 - - Specific Developements - - - - - 30 - - Install, data import, configuration - - + + + + en_US + Manager2 + + + + + + + manager2 + manager2 + - - 38.0 - 38.0 - + + + en_US + user1 + + + + + + + user1 + USER1 + + + + + + en_US + user2 + + + + + + + user2 + user2 + + + + + + en_US + user_finance + + + + + + + user_finance + user_finance + + + + + + en_US + user_design1 + + + + + + + user_design1 + user_design1 + + + + + + en_US + user_design2 + + + + + + + user_design2 + user_design2 + + + + + + en_US + user_developer1 + + + + + + + user_developer1 + user_developer1 + + + + + + en_US + user_developer2 + + + + + + + user_developer2 + user_developer1 + + + + + + en_US + user_tester1 + + + + + + + user_tester1 + user_tester1 + + + + + + en_US + user_tester2 + + + + + + + user_tester2 + user_tester2 + + + + + + en_US + user_analyst + + + + + + + user_analyst + user_analyst + + + + + + - - BoM, After sales returns, interventions. Tracability. - Specific adaptation to MRP + Fabien Pinckaers + + + + user - - 16.0 - 16.0 - - - - Data importation + Doc + + + + + Analyst + + + + user - - 16.0 - 16.0 - - - - Modifications asked by the customer. + + + + + Programmer + + + + user - - 16.0 - 16.0 - - - 0 - - Customer analysis + Architecture + + + + + Tester + + + + user - - 15 - 8.0 - 8.0 - - - - Internal testing + Software Install - 2008-06-06 + + + + + Web Designer + + + + user - - 17 - 16.0 - 16.0 - - + + + + + + + + + 2010-02-25 + + + open + normal + Develop an OpenERP Website. + + 2010-04-30 + + + + OpenERP Website Development + + + + + + Information Gathering and Understanding + + + 2010-03-11 15:37:00 + 2010-02-25 15:33:00 + draft + + + + 2010-02-26 15:37:00 + 2010-03-10 15:33:00 + + + + + Planning + + + 2010-02-18 15:49:00 + 2010-02-18 15:48:00 + draft + + + + 2010-02-12 15:49:00 + 2010-03-11 15:48:00 + + + + + Web Design + + + 2010-04-10 16:08:00 + 2010-04-01 16:02:00 + draft + + + + 2010-04-01 16:08:00 + 2010-04-10 16:02:00 + + + + + Development, Integration and Testing + + + 2010-04-27 17:29:00 + 2010-04-12 16:10:00 + draft + + + + 2010-04-14 16:11:00 + 2010-04-26 16:10:00 + + + + + Website Deployment + + + 2010-04-28 16:35:00 + 2010-04-26 16:35:00 + draft + + + + 2010-04-27 16:35:00 + 2010-04-27 16:34:00 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 2010-03-02 11:00:00 + + + 2010-02-24 05:00:00 + 2 - open - - Analysis, Data Importation + draft + + + + + + Prepare Requirements Document + 2010-03-08 + + + - - 20 - 16.0 - 16.0 - open - - - Parameters + + + + + + 2010-02-25 15:38:08 + + 2 + draft + + + + + + Define Website Goals, Purposes and Target Audience + 2010-03-04 + + + - - 20 - 32.0 - 32.0 - - open - - Start of the doc redaction + MRP + + + + + + 2010-02-25 15:42:42 + + 2 + draft + + + + + + Use Cases + 2010-03-10 + + + - - 25 - 24.0 - 24.0 - - - done - MRP Tests + + + + + + 2010-02-25 15:51:00 + + 2 + draft + + + + + + Budget Planning + 2010-03-31 + + + - - 29 - 24.0 - 24.0 - - - MRP; functionnal layer - done - + + + + + + 2010-02-25 15:54:42 + + 2 + draft + + + + + + Quality Planning + 2010-03-31 + + + - - 30 - 24.0 - 24.0 - - - Products Adaptation + + + + + + 2010-02-25 15:55:11 + + 2 + draft + + + + + + Risk Management Planning + 2010-03-31 + + + - - 30 - 24.0 - 24.0 - - - Install + Super User Training + + + + + + 2010-02-25 15:57:48 + + 2 + draft + + + + + + Create Project Schedules + 2010-03-31 + + + - - 30 - 32.0 - 32.0 - - - Customer docs + + + + + + 2010-02-25 16:04:16 + + 2 + draft + + + + + + Dataflow Design + 2010-04-02 + + + - - 30 - 24.0 - 24.0 - - - Development of the presentation layer + + + + + + 2010-02-25 16:05:43 + + 2 + draft + + + + + + User Interface Design + 2010-04-10 + + + - - 40 - 32.0 - 32.0 - - - Free Time + + + + + + 2010-02-25 16:06:52 + + 2 + draft + + + + + + Task Level WBS + 2010-04-07 + + + - - 40 - 50.0 - 50.0 - - - Specific tests + + + + + + 2010-02-25 16:11:40 + + 2 + draft + + + + + + Modular Programming + 2010-04-22 + + - - 40 - 24.0 - 24.0 - - - Sale module + + + + + + 2010-02-25 16:13:10 + + 2 + draft + + + + + + Integrate Modules + 2010-04-24 + + - - 40 - 32.0 - 32.0 - - - open - In house training - 2007-06-06 + + + + + + 2010-02-25 16:14:32 + + 2 + draft + + + + + + Unit Testing + 2010-04-24 + + - - 50 - 24.0 - 24.0 - - - Validation + latest modifications. + + + + + + 2010-02-25 16:15:38 + + 2 + draft + + + + + + Regression Test + 2010-04-24 + + - - 50 - 24.0 - 24.0 - - - Adaptations buy module + + + + + + 2010-02-25 16:17:04 + + 2 + draft + + + + + + Documentation + 2010-04-24 + + - - 60 - 16.0 - 16.0 - - - Presentation of the software. + + + + + + 2010-02-25 16:17:42 + + 2 + draft + + + + + + Performance Tuning + 2010-04-24 + + - - 60 - 24.0 - 24.0 - - - Adaptations Stock module + + + + + + 2010-02-25 16:21:15 + + 2 + draft + + + + + + Deploy Website + 2010-04-26 + + - - 70 - 24.0 - 24.0 - - - Latest in house tests + + + + + + 2010-02-25 16:22:09 + + 2 + draft + + + + + + Presentation + 2010-04-28 + + + + + + + + + 2010-02-25 16:36:02 + + 2 + draft + + + + + + Deployment + 2010-04-28 + + + + + + + + + + 2010-02-25 16:36:43 + + 2 + draft + + + + + + Presentation + 2010-04-29 + + + + + + + + + + 2010-02-25 17:22:46 + + 2 + draft + + + + + + Modules Integration + 2010-04-24 + + + + + + + + + + 2010-02-25 17:34:32 + + 2 + draft + + + + + + Unit Testing + 2010-04-24 + + + + + + + + + + 2010-02-25 17:35:46 + + 2 + draft + + + + + + Modular Testing + 2010-04-24 + + + + + + + + + + 2010-02-25 17:36:27 + + 2 + draft + + + + + + Documentation + 2010-04-28 + + + + + + + + + + 2010-02-25 17:37:03 + + 2 + draft + + + + + + Performance Tuning + 2010-04-27 + + + + + + + + 2010-03-12 18:00:00 + + + 2010-03-01 12:00:00 + + 2 + draft + + + + + + Modular Programming + 2010-04-22 + + + - + \ No newline at end of file diff --git a/addons/project_long_term/project_wizard.xml b/addons/project_long_term/project_wizard.xml index c45bcca1b42..bcb94d0fd02 100644 --- a/addons/project_long_term/project_wizard.xml +++ b/addons/project_long_term/project_wizard.xml @@ -1,11 +1,7 @@ - - - + + diff --git a/addons/scrum/wizard/__init__.py b/addons/scrum/wizard/__init__.py index 3dcc246290a..117e64dcea7 100644 --- a/addons/scrum/wizard/__init__.py +++ b/addons/scrum/wizard/__init__.py @@ -20,6 +20,7 @@ ############################################################################## import backlog_to_task +import assign_backlog_to_sprint # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/scrum/wizard/assign_backlog_to_sprint.py b/addons/scrum/wizard/assign_backlog_to_sprint.py new file mode 100644 index 00000000000..35c2852325b --- /dev/null +++ b/addons/scrum/wizard/assign_backlog_to_sprint.py @@ -0,0 +1,87 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2004-2010 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 wizard +import ir +from mx.DateTime import now +import pooler +import netsvc + +bts_form = """ +
+ + + + + + + + + + +""" + +bts_fields = { + 'sprint_id' : {'string':'Sprint Name', 'type':'many2one', 'relation':'scrum.sprint', 'required':True}, + 'state_open' : {'string':'Set Open', 'type':'boolean'}, + 'convert_to_task' : {'string':'Convert To Task', 'type':'boolean'} +} + +def _assign_sprint(self, cr, uid, data, context): + pool = pooler.get_pool(cr.dbname) + backlog_obj = pool.get('scrum.product.backlog') + task = pool.get('project.task') + + state_open=data['form']['state_open'] + convert_to_task = data['form']['convert_to_task'] + + for backlog in backlog_obj.browse(cr, uid, data['ids']): + backlog_obj.write(cr, uid, backlog.id, {'sprint_id':data['form']['sprint_id']}) + if convert_to_task: + task.create(cr, uid, { + 'product_backlog_id': backlog.id, + 'name': backlog.name, + 'description': backlog.note, + 'project_id': backlog.project_id.id, + 'user_id': (backlog.user_id and backlog.user_id.id) or uid, + 'planned_hours': backlog.planned_hours + }) + if state_open: + if backlog.state == "draft": + backlog_obj.write(cr, uid, backlog.id, {'state':'open'}) + return {} + +class wiz_bts(wizard.interface): + states = { + 'init':{ + 'actions': [], + 'result': {'type':'form', 'arch':bts_form, 'fields':bts_fields, 'state':[('end', 'Cancel'), ('assign', 'Assign Sprint')] }, + }, + 'assign':{ + 'actions': [], + 'result': {'type':'action', 'action': _assign_sprint, 'state':'end'}, + }, + } +wiz_bts('scrum.product.backlog.sprint.assign') + + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: +