From 1557e18e44d6124d8a88e5e249b38ba58149da1d Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Thu, 20 Nov 2008 16:28:37 +0100 Subject: [PATCH] [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 --- addons/hr/hr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/hr/hr.py b/addons/hr/hr.py index cd08a557d7e..5324470e4b5 100644 --- a/addons/hr/hr.py +++ b/addons/hr/hr.py @@ -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(':'))