Launchpad automatic translations update.
[odoo/odoo.git] / addons / mrp_repair / test / mrp_repair_report.yml
1 -
2   In order to test the PDF reports defined on a MRP Repair, we will print an Order Report
3 -
4   !python {model: mrp.repair}: |
5     import netsvc, tools, os
6     (data, format) = netsvc.LocalService('report.repair.order').create(cr, uid, [ref('mrp_repair.mrp_repair_rmrp0')], {}, {})
7     if tools.config['test_report_directory']:
8         file(os.path.join(tools.config['test_report_directory'], 'mrp_repair-order_report.'+format), 'wb+').write(data)