Launchpad automatic translations update.
[odoo/odoo.git] / addons / hr_timesheet / test / hr_timesheet_report.yml
1 -
2  Print the HR Timesheet By Employee report through the wizard
3 -
4   !python {model: hr.employee}: |
5     import netsvc, tools, os, time
6     ctx={}
7     ctx.update({'model': 'hr.employee','active_ids': []})
8     data_dict = {'month': time.gmtime()[1], 'year': time.gmtime()[0], 'employee_id' : ref('hr.employee1')}
9     from tools import test_reports
10     test_reports.try_report_action(cr, uid, 'action_hr_timesheet_my',wiz_data=data_dict, context=ctx, our_module='hr_timesheet')
11
12 -
13  Print the HR Timesheet By Employee report through the wizard
14 -
15   !python {model: hr.employee}: |
16     import netsvc, tools, os, time
17     ctx={}
18     ctx.update({'model': 'hr.employee','active_ids': []})
19     data_dict = {'month': time.gmtime()[1], 'year': time.gmtime()[0], 'employee_ids' : [(6,0,[ref('hr.employee1'),ref('hr.employee2'),ref('hr.employee3')])]}
20     from tools import test_reports
21     test_reports.try_report_action(cr, uid, 'action_hr_timesheet_users',wiz_data=data_dict, context=ctx, our_module='hr_timesheet')