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')