[FIX]Fixed the issue of timezone on total attendance on My current timesheet view.

bzr revid: msh@openerp.com-20130522125350-b6yj2mpqosfwajkc
This commit is contained in:
Mohammed Shekha 2013-05-22 18:23:50 +05:30
parent 9114185c85
commit a74fa6ed73
1 changed files with 1 additions and 1 deletions

View File

@ -464,7 +464,7 @@ class hr_timesheet_sheet_sheet_day(osv.osv):
THEN (SUM(total_attendance) +
CASE WHEN current_date <> name
THEN 1440
ELSE (EXTRACT(hour FROM current_time) * 60) + EXTRACT(minute FROM current_time)
ELSE (EXTRACT(hour FROM current_time AT TIME ZONE 'UTC') * 60) + EXTRACT(minute FROM current_time AT TIME ZONE 'UTC')
END
)
ELSE SUM(total_attendance)