Scrum Rename Backlog

bzr revid: fp@tinyerp.com-20100531170919-fotymiklvjveozis
This commit is contained in:
Fabien Pinckaers
2010-05-31 19:09:19 +02:00
parent 8397cd973d
commit 99b3140e16
2 changed files with 5 additions and 4 deletions
+1
View File
@@ -90,6 +90,7 @@ class crm_phonecall(osv.osv, crm_case):
'date': lambda *a: time.strftime('%Y-%m-%d %H:%M:%S'),
'priority': lambda *a: crm.AVAILABLE_PRIORITIES[2][0],
'state': lambda *a: 'draft',
'user_id': lambda self,cr,uid,ctx: uid,
'active': lambda *a: 1,
}
+4 -4
View File
@@ -179,7 +179,7 @@ class scrum_product_backlog(osv.osv):
for bl in self.browse(cr, uid, ids):
res.setdefault(bl.id, 0.0)
for task in bl.tasks_id:
res[bl.id] += task.planned_hours
res[bl.id] += task.total_hours
return res
def button_cancel(self, cr, uid, ids, context={}):
@@ -213,9 +213,9 @@ class scrum_product_backlog(osv.osv):
'tasks_id': fields.one2many('project.task', 'product_backlog_id', 'Tasks Details'),
'state': fields.selection([('draft','Draft'),('open','Open'),('pending','Pending'),('done','Done'),('cancel','Cancelled')], 'State', required=True),
'progress': fields.function(_calc_progress, method=True, string='Progress', help="Computed as: Time Spent / Total Time."),
'effective_hours': fields.function(_calc_effective, method=True, string='Effective hours', help="Computed using the sum of the task work done (Time spent on tasks)"),
'planned_hours': fields.function(_calc_planned, method=True, string='Planned Hours', help='Estimated time to do the task, usually set by the project manager when the task is in draft state.'),
'expected_hours': fields.float('Expected Hours', help='Estimated total time to do the Backlog'),
'effective_hours': fields.function(_calc_effective, method=True, string='Effective Hours', help="Computed using the sum of the task work done (Time spent on tasks)"),
'planned_hours': fields.function(_calc_planned, method=True, string='Tasks Hours', help='Estimated time to do the task, usually set by the project manager when the task is in draft state.'),
'expected_hours': fields.float('Planned Hours', help='Estimated total time to do the Backlog'),
'date':fields.datetime("Created Date"),
}
_defaults = {