[RIP] project, project_long_term: funeral of dead code
[odoo/odoo.git] / addons / hr_payroll / test / hr_payroll_report.yml
1 -
2   In order to test the PDF reports defined on HR Payroll, we will print Employees' Salary Structure
3 -
4   Print HR Payslip
5 -
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)