Fix _sheet function in timesheet when called with a list of non unique id
bzr revid: ced-0077ba46e97cd7b1afbfe1a9fed3096a0d7bef4c
This commit is contained in:
parent
7e33235a8d
commit
0237f62a81
|
@ -314,7 +314,7 @@ class hr_timesheet_line(osv.osv):
|
|||
context=context):
|
||||
sheet_names[sheet_id] = name
|
||||
|
||||
for line_id in ids:
|
||||
for line_id in {}.fromkeys(ids):
|
||||
sheet_id = res.get(line_id, False)
|
||||
if sheet_id:
|
||||
res[line_id] = (sheet_id, sheet_names[sheet_id])
|
||||
|
@ -433,7 +433,7 @@ class hr_attendance(osv.osv):
|
|||
context=context):
|
||||
sheet_names[sheet_id] = name
|
||||
|
||||
for line_id in ids:
|
||||
for line_id in {}.fromkeys(ids):
|
||||
sheet_id = res.get(line_id, False)
|
||||
if sheet_id:
|
||||
res[line_id] = (sheet_id, sheet_names[sheet_id])
|
||||
|
|
Loading…
Reference in New Issue