projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1af2fce
)
Fix sheet function on attendance
author
ced
<>
Wed, 31 Oct 2007 14:14:13 +0000
(14:14 +0000)
committer
ced
<>
Wed, 31 Oct 2007 14:14:13 +0000
(14:14 +0000)
Must return a value for all ids
bzr revid: ced-
215b2a85699f8f916dd2502bf74cf938c807231d
addons/hr_timesheet_sheet/hr_timesheet_sheet.py
patch
|
blob
|
history
diff --git
a/addons/hr_timesheet_sheet/hr_timesheet_sheet.py
b/addons/hr_timesheet_sheet/hr_timesheet_sheet.py
index
3795724
..
9325c12
100644
(file)
--- a/
addons/hr_timesheet_sheet/hr_timesheet_sheet.py
+++ b/
addons/hr_timesheet_sheet/hr_timesheet_sheet.py
@@
-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: