From 35a69fa9a2f4807030fb5239653a4cb040f8f5a9 Mon Sep 17 00:00:00 2001 From: "apa (OpenERP)" Date: Wed, 22 Dec 2010 16:45:49 +0530 Subject: [PATCH] [IMP]:hr_attendance:improved code bzr revid: apa@tinyerp.com-20101222111549-9bu03x6lejcgrgwx --- addons/hr_attendance/test/hr_attendance_report.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/addons/hr_attendance/test/hr_attendance_report.yml b/addons/hr_attendance/test/hr_attendance_report.yml index bb3dc8ea037..99e70614b13 100644 --- a/addons/hr_attendance/test/hr_attendance_report.yml +++ b/addons/hr_attendance/test/hr_attendance_report.yml @@ -5,10 +5,9 @@ import netsvc, tools, os, time ctx={} ctx.update({'model': 'hr.employee','active_ids': [ref('hr.employee1'),ref('hr.employee2'),ref('hr.employee3')]}) - data_dict = {'month': time.gmtime()[1], 'year': time.gmtime()[0]} + data_dict = {} from tools import test_reports test_reports.try_report_action(cr, uid, 'action_hr_attendance_month',wiz_data=data_dict, context=ctx, our_module='hr_attendance') - - Print HR Attendance Error Report through the wizard - @@ -16,6 +15,6 @@ import netsvc, tools, os, time ctx={} ctx.update({'model': 'hr.employee','active_ids': [ref('hr.employee1')]}) - data_dict = {'init_date': time.strftime('%Y-01-01'), 'end_date':time.strftime('%Y-%m-%d'), 'max_delay': 120 } + data_dict = {'init_date': time.strftime('%Y-01-01')} from tools import test_reports test_reports.try_report_action(cr, uid, 'action_hr_attendance_error',wiz_data=data_dict, context=ctx, our_module='hr_attendance')