2 In order to test the PDF reports defined on HR Payroll, we will print Employees' Salary Structure
6 !python {model: hr.payslip}: |
7 import netsvc, tools, os
8 (data, format) = netsvc.LocalService('report.payslip.pdf').create(cr, uid, [ref('hr_payroll.hr_payslip_salaryslipofbonamyforjune0')], {}, {})
9 if tools.config['test_report_directory']:
10 file(os.path.join(tools.config['test_report_directory'], 'hr_payroll-payslip_report.'+format), 'wb+').write(data)