[IMP] safe_eval: do not log exceptions, when re-raising a new exception, make the...
[odoo/odoo.git] / addons / hr_attendance / test / hr_attendance_report.yml
1 -
2  Print the HR Attendance Report By Month through the wizard
3 -
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')]}
7     data_dict = {}
8     test_reports.try_report_action(cr, uid, 'action_hr_attendance_month',wiz_data=data_dict, context=ctx, our_module='hr_attendance')
9 -
10   Print HR Attendance Error Report through the wizard
11 -
12   !python {model: hr.employee}: |
13     import time
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')