bzr revid: fp@tinyerp.com-20090204220248-9l960tlmaw30qbrv
This commit is contained in:
Fabien Pinckaers
2009-02-04 23:02:48 +01:00
parent 5b586abd3f
commit 8b5a4b400a
6 changed files with 13 additions and 12 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ def _compute_tasks(cr, uid, task_list, date_begin):
# Compute the closing date of the task
tasks[task.id] = []
res = pooler.get_pool(cr.dbname).get('hr.timesheet.group').interval_get(cr, uid, task.project_id.timesheet_id.id, date_start, task.planned_hours)
res = pooler.get_pool(cr.dbname).get('hr.timesheet.group').interval_get(cr, uid, task.project_id.timesheet_id.id, date_start, task.remaining_hours)
for (d1,d2) in res:
tasks[task.id].append((d1, d2, task.name, task.user_id.login))
date_close = tasks[task.id][-1][1]
+1
View File
@@ -51,6 +51,7 @@ class GanttCanvas(object):
self._min = x[0]
if x[1]>self._max or not self._max:
self._max = x[1]
print name, self._conv[1](x[1])
self._datas[user].append( (name, x))
self._names.setdefault(name, x[0])