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:
parent
f9fc8163b0
commit
80cbf45e45
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue