From 8ea773c793398546341f31360cde91a5f23fecef Mon Sep 17 00:00:00 2001 From: apa-tiny Date: Tue, 16 Mar 2010 17:06:20 +0530 Subject: [PATCH] [FIX]:hr_holidays:Fixed the problem when run the print screen report. bzr revid: apa@tinyerp.com-20100316113620-qlvud6n1adx03uvk --- addons/hr_holidays/report/hr_holidays_report.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/hr_holidays/report/hr_holidays_report.py b/addons/hr_holidays/report/hr_holidays_report.py index 3672f4e8e06..59a0a361eeb 100644 --- a/addons/hr_holidays/report/hr_holidays_report.py +++ b/addons/hr_holidays/report/hr_holidays_report.py @@ -28,7 +28,7 @@ class hr_holidays_report(osv.osv): _auto = False _rec_name = 'date' _columns = { - 'date': fields.date('Date', readonly=True), + 'date': fields.datetime('Date', readonly=True), 'year': fields.char('Year', size=4, readonly=True), 'month':fields.selection([('01','January'), ('02','February'), ('03','March'), ('04','April'), ('05','May'), ('06','June'), ('07','July'), ('08','August'), ('09','September'), @@ -52,9 +52,9 @@ class hr_holidays_report(osv.osv): create or replace view hr_holidays_report as ( select min(s.id) as id, - s.create_date as date, - to_char(s.date_from,'YYYY/mm/dd') as date_from, - to_char(s.date_to,'YYYY/mm/dd') as date_to, + date_trunc('seconds',s.create_date) as date, + date_trunc('day',s.date_from) as date_from, + date_trunc('day',s.date_to) as date_to, s.number_of_days_temp, s.employee_id, s.user_id as user_id,