Time marked on other task instead of current task by an employee #2216

* This patch passes task.work.id in TimesheetLine instead of task.id

Task ID: project-7/task-2216
Issue ID: 338001
This commit is contained in:
Simmi Anand 2013-08-09 12:49:03 +05:30
parent f9fc8163b0
commit 80cbf45e45
1 changed files with 1 additions and 1 deletions

View File

@ -1846,7 +1846,7 @@ class Project:
TimesheetLine.create({
'employee': request.nereid_user.employee.id,
'hours': request.form['hours'],
'work': task.id
'work': task.work.id,
})
flash("Time has been marked on task %s" % task.name)