[FIX] use string instead of numeric format for day of week

lp bug: https://launchpad.net/bugs/289035 fixed

bzr revid: christophe@tinyerp.com-20081120152837-t7e9n27vv8e65aob
This commit is contained in:
Christophe Simonis 2008-11-20 16:28:37 +01:00
parent 2790503660
commit 1557e18e44
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ class hr_timesheet_group(osv.osv):
cycle = 0
result = []
while todo>0:
cr.execute('select hour_from,hour_to from hr_timesheet where dayofweek=%d and tgroup_id=%d order by hour_from', (dt_from.day_of_week,id))
cr.execute('select hour_from,hour_to from hr_timesheet where dayofweek=%s and tgroup_id=%d order by hour_from', (dt_from.day_of_week,id))
for (hour_from,hour_to) in cr.fetchall():
h1,m1 = map(int,hour_from.split(':'))
h2,m2 = map(int,hour_to.split(':'))