Fix sheet function on attendance

Must return a value for all ids

bzr revid: ced-215b2a85699f8f916dd2502bf74cf938c807231d
This commit is contained in:
ced 2007-10-31 14:14:13 +00:00
parent 1af2fce548
commit 0f66f8358f
1 changed files with 2 additions and 2 deletions

View File

@ -380,8 +380,8 @@ class hr_attendance(osv.osv):
context=context):
sheet_names[sheet_id] = name
for line_id in res.keys():
sheet_id = res[line_id]
for line_id in ids:
sheet_id = res.get(line_id, False)
if sheet_id:
res[line_id] = (sheet_id, sheet_names[sheet_id])
else: