projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
df2e505
)
[Fix] hr_attendance: Fix the pylint warning
author
sbh (Open ERP)
<sbh@tinyerp.com>
Fri, 8 Oct 2010 05:16:10 +0000
(10:46 +0530)
committer
sbh (Open ERP)
<sbh@tinyerp.com>
Fri, 8 Oct 2010 05:16:10 +0000
(10:46 +0530)
bzr revid: sbh@tinyerp.com-
20101008051610
-glvci1rbuc5ytuyo
addons/hr_attendance/report/timesheet.py
patch
|
blob
|
history
diff --git
a/addons/hr_attendance/report/timesheet.py
b/addons/hr_attendance/report/timesheet.py
index
b084542
..
abedddd
100644
(file)
--- a/
addons/hr_attendance/report/timesheet.py
+++ b/
addons/hr_attendance/report/timesheet.py
@@
-83,7
+83,6
@@
class report_custom(report_rml):
dt = datetime.strptime(att['name'], '%Y-%m-%d %H:%M:%S')
if att['action'] == 'sign_out':
week_wh[ldt.date().weekday()] = week_wh.get(ldt.date().weekday(), 0) + ((dt - ldt).seconds/3600)
- ldt = dt
# Week xml representation
week_repr = ['<week>', '<weekstart>%s</weekstart>' % monday.strftime('%Y-%m-%d'), '<weekend>%s</weekend>' % n_monday.strftime('%Y-%m-%d')]