2 Print the HR Attendance Report By Month through the wizard
4 !python {model: hr.employee}: |
5 from openerp.tools import test_reports
6 ctx = {'model': 'hr.employee','active_ids': [ref('hr.employee_fp'),ref('hr.employee_qdp'),ref('hr.employee_al')]}
8 test_reports.try_report_action(cr, uid, 'action_hr_attendance_month',wiz_data=data_dict, context=ctx, our_module='hr_attendance')
10 Print HR Attendance Error Report through the wizard
12 !python {model: hr.employee}: |
14 from openerp.tools import test_reports
15 ctx = {'model': 'hr.employee','active_ids': [ref('hr.employee_fp')]}
16 data_dict = {'init_date': time.strftime('%Y-01-01')}
17 test_reports.try_report_action(cr, uid, 'action_hr_attendance_error',wiz_data=data_dict, context=ctx, our_module='hr_attendance')