Fix view timesheet by day to take only sign_in/sign_out action

bzr revid: ced-96083cca776eb529bd439ab453a118dfb8892e7c
This commit is contained in:
ced 2007-09-20 11:04:21 +00:00
parent 6f7bdabe0a
commit 32ad57b54f
1 changed files with 1 additions and 0 deletions

View File

@ -480,6 +480,7 @@ class hr_timesheet_sheet_sheet_day(osv.osv):
SUM(((EXTRACT(hour FROM a.name) * 60) + EXTRACT(minute FROM a.name)) * (CASE WHEN a.action = 'sign_in' THEN -1 ELSE 1 END)) as total_attendance
from
hr_attendance a
WHERE action in ('sign_in', 'sign_out')
group by a.name::date, a.sheet_id
)) AS foo
GROUP BY name, sheet_id