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