2 Print the HR Timesheet By Employee report through the wizard
4 !python {model: hr.employee}: |
5 import netsvc, tools, os, time
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')
13 Print the HR Timesheet By Employee report through the wizard
15 !python {model: hr.employee}: |
16 import netsvc, tools, os, time
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')