From f0c306b2b8294c25e4d1785d693f058553c77750 Mon Sep 17 00:00:00 2001 From: "DBR (OpenERP)" Date: Fri, 8 Oct 2010 18:29:00 +0530 Subject: [PATCH] [MOD/IMP] hr_timesheet : Usability Improvements in Timesheet Sheet yml Report bzr revid: dbr@tinyerp.com-20101008125900-lpjetu39xmpbynpu --- addons/hr_timesheet/test/hr_timesheet_report.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/hr_timesheet/test/hr_timesheet_report.yml b/addons/hr_timesheet/test/hr_timesheet_report.yml index 2f19f75618f..b1cd445a35d 100644 --- a/addons/hr_timesheet/test/hr_timesheet_report.yml +++ b/addons/hr_timesheet/test/hr_timesheet_report.yml @@ -5,7 +5,7 @@ import netsvc, tools, os, time month = time.gmtime()[1] year = time.gmtime()[0] - data_dict = {'model': 'ir.ui.menu', 'form': {'month': month, 'year' : year, 'user_id' : uid }} + data_dict = {'model': 'ir.ui.menu', 'form': {'month': month, 'year' : year, 'employee_id' : ref('hr.employee1') }} (data, format) = netsvc.LocalService('report.hr.analytical.timesheet').create(cr, uid, [], data_dict, {}) if tools.config['test_report_directory']: file(os.path.join(tools.config['test_report_directory'], 'hr_timesheet-user_report.'+format), 'wb+').write(data) @@ -17,7 +17,7 @@ import netsvc, tools, os, time month = time.gmtime()[1] year = time.gmtime()[0] - data_dict = {'model': 'ir.ui.menu', 'form': {'month': month, 'year' : year, 'user_ids' : [uid] }} + data_dict = {'model': 'ir.ui.menu', 'form': {'month': month, 'year' : year, 'employee_ids' : [ref('hr.employee1')] }} (data, format) = netsvc.LocalService('report.hr.analytical.timesheet_users').create(cr, uid, [], data_dict, {}) if tools.config['test_report_directory']: - file(os.path.join(tools.config['test_report_directory'], 'hr_timesheet-users_report.'+format), 'wb+').write(data) \ No newline at end of file + file(os.path.join(tools.config['test_report_directory'], 'hr_timesheet-users_report.'+format), 'wb+').write(data)