[FIX]: report_task: month field problem

bzr revid: uco@tinyerp.co.in-20091221115644-j019xuhmq6wwjzzs
This commit is contained in:
vir-openerp 2009-12-21 17:26:44 +05:30 committed by uco (OpenERP)
parent 089f115814
commit fe9ae08777
1 changed files with 2 additions and 2 deletions

View File

@ -133,7 +133,7 @@ class report_timesheet_task_user(osv.osv):
return result
_columns = {
'name': fields.char('Year',size=64,required=False, readonly=True),
'name': fields.date('Month',readonly=True),
'user_id': fields.many2one('res.users', 'User',readonly=True),
'timesheet_hrs': fields.function(get_hrs_timesheet, method=True, string="Timesheet Hours"),
'task_hrs': fields.function(_get_task_hours, method=True, string="Task Hours"),
@ -154,7 +154,7 @@ class report_timesheet_task_user(osv.osv):
union
select to_char(h.name,'YYYY-MM-01') as name,
to_char(h.name,'MM') as m_id
from hr_timesheet_sheet_sheet_day h) as month) """)
from hr_timesheet_sheet_sheet_day h) as months) """)
report_timesheet_task_user()